/* ----- landing / login page (CodyChat-style: full photo, centred logo, big round buttons) ----- */
.page-login { background: #000; }
.login-wrap { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.login-back { position: absolute; inset: 0; z-index: 0; background: #1a1a1a url("../img/login-bg.jpg") center / cover no-repeat; }
.login-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.62)); }
.login-center { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 800px; width: 94%; margin: 0 auto; padding: 40px 0; text-align: center; color: #fff; }
.login-logo { height: 70px; width: auto; }
.login-title { margin-top: 22px; font-size: 30px; font-weight: 800; }
.login-text { margin-top: 10px; font-size: var(--fs-lg); color: #e6e6e6; }
.login-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.login-new { margin-top: 26px; color: #ddd; }
.login-new .link-btn { margin-top: 4px; color: #fff; font-size: var(--fs-md); }
.login-foot { position: relative; z-index: 1; display: flex; justify-content: center; gap: 16px; padding: 18px 16px 24px 16px; font-size: var(--fs-sm); color: #bbb; }
.login-foot .link-btn { color: #ddd; font-weight: 400; }

/* ----- cookie notice ----- */
.cookie-bar { position: fixed; z-index: var(--z-cookie); left: 12px; right: 12px; bottom: 12px; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius); background: rgba(25, 25, 25, .97); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: var(--fs-sm); color: #d6d6d6; }
.cookie-bar p { flex: 1; margin: 0; }
.cookie-bar .btn { flex: none; }
@media (max-width: 480px) { .cookie-bar { flex-wrap: wrap; } .cookie-bar .btn { width: 100%; } }

/* ----- signed-in shell (placeholder for the chat) ----- */
.app-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 16px; background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.app-brand img { height: 32px; width: auto; display: block; }
.head-user { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 0; border-radius: var(--radius-pill); background: var(--bg-card); }
.head-user:hover { background: var(--bg-hover); }
.head-name { font-weight: 700; font-size: var(--fs-sm); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main { padding: 20px 16px 40px 16px; }

@media (max-width: 480px) {
  .login-title { font-size: 25px; }
  .login-text { font-size: var(--fs-md); }
  .btn-round { min-width: 0; width: min(86vw, 320px); }
}

/* ----- installer ----- */
.page-install { background: var(--bg); }
.install-wrap { max-width: 640px; margin: 0 auto; padding: 32px 16px 60px 16px; }
.install-head { text-align: center; margin-bottom: 20px; }
.install-head .login-title { margin-top: 14px; }
.install-head .login-text { max-width: 480px; margin-left: auto; margin-right: auto; font-size: var(--fs-md); color: var(--text-muted); }
.install-card { max-width: none; margin: 0 0 18px 0; padding: 24px; }
.install-gap { margin-top: 26px; }
.install-go { margin-top: 20px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: var(--fs-sm); color: var(--text); }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); }
.steps { list-style: none; margin: 0 0 16px 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.steps li.ok i { color: var(--success); }
.steps li.bad i { color: var(--danger); }
textarea.input.code { height: auto; padding: 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow: auto; resize: vertical; }
code { background: var(--bg-card); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
