/* KNAAD auth pages — one look for every public page (unified login, signup, forgot,
 * reset, verify-email). Loaded AFTER app.css and only on body.auth pages: it upgrades the
 * shared skeleton to the same design language as the account home (account.css) so a user
 * moving login → activation → account sees one product, not three eras of styling.
 * The admin console keeps app.css untouched — different audience, different page.
 */

body.auth {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 12% -12%, rgba(59, 130, 246, .16), transparent 62%),
    radial-gradient(900px 520px at 88% 8%, rgba(139, 92, 246, .13), transparent 60%),
    linear-gradient(180deg, #0a1428, #060c1a 55%);
  background-attachment: fixed;
  color: #e9f0fa;
  font-family: "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
  line-height: 1.7;
}

body.auth .card {
  width: min(400px, 92vw);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .022));
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}

body.auth .brand { padding-bottom: 14px; }
body.auth .brand-logo { height: 52px; }
body.auth .brand .sub { color: #93a6c2; font-size: .82rem; letter-spacing: .3px; }

body.auth h1 {
  font-size: 20px; font-weight: 800; letter-spacing: .2px;
  text-align: center; margin: 0 0 6px;
}
body.auth .muted { color: #93a6c2; }

body.auth label { display: block; font-size: 13px; font-weight: 700; color: #93a6c2; margin: 14px 0 0; }
body.auth input {
  width: 100%; box-sizing: border-box; margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px;
  background: rgba(3, 8, 20, .5); color: #e9f0fa;
  font: inherit; font-size: 14.5px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
body.auth input:focus {
  outline: 0; border-color: rgba(96, 165, 250, .65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}

body.auth .btn {
  border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 15px;
  transition: filter .18s ease, background .18s ease, border-color .18s ease;
}
body.auth .btn.primary {
  margin-top: 18px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: 0; color: #fff;
  box-shadow: 0 8px 22px rgba(59, 130, 246, .28);
}
body.auth .btn.primary:hover { filter: brightness(1.07); }

body.auth .flash { border-radius: 12px; font-weight: 600; }
body.auth .flash.ok  { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .34); color: #34d399; }
body.auth .flash.err { background: rgba(248, 113, 113, .11); border-color: rgba(248, 113, 113, .32); color: #f87171; }

body.auth a { color: #7db5f8; text-decoration: none; }
body.auth a:hover { text-decoration: underline; }
body.auth p.muted.center, body.auth .center p.muted { font-size: 13px; }

/* the 6-digit activation code box (verify-email page) */
body.auth input[name="code"] {
  text-align: center; letter-spacing: 10px; font-size: 22px; font-weight: 800;
}

@media (max-width: 480px) {
  body.auth .card { padding: 24px 18px 20px; }
}
