/* Sign-in screens: brand panel + form card. */
body.auth-page { margin: 0; background: #f4f6f3; font-family: "DM Sans", system-ui, sans-serif; color: #152024; }
body.auth-page #container { min-width: 0; padding: 0; }
body.auth-page #main, body.auth-page #content, body.auth-page .main { display: block; margin: 0; padding: 0; width: auto; max-width: none; float: none; }
body.auth-page #content-start, body.auth-page .content { padding: 0; }

.auth { display: grid; grid-template-columns: minmax(360px, 46%) 1fr; min-height: 100vh; }

/* Brand panel */
.auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 40px clamp(28px, 5vw, 64px); color: #fff;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(246,185,20,.20), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(39,129,45,.35), transparent 60%),
    linear-gradient(160deg, #10181b, #182a2f 55%, #1e3b2a);
}
.auth-brand::after { /* road lane markings */
  content: ""; position: absolute; right: -60px; bottom: -40px; width: 340px; height: 340px; border-radius: 50%;
  border: 26px solid rgba(246,185,20,.08); box-shadow: 0 0 0 46px rgba(255,255,255,.025);
}
.auth-brand-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-logo { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; object-position: 50% 33%; background: #fff; box-shadow: 0 0 0 3px rgba(246,185,20,.3); }
.auth-brand-top b, .auth-brand-top em { display: block; font: 700 14px/1 "Space Grotesk", sans-serif; letter-spacing: .12em; }
.auth-brand-top em { margin-top: 5px; color: #f6b914; font-size: 10px; font-style: normal; }
.auth-hero { position: relative; z-index: 1; max-width: 480px; }
.auth-kicker { margin: 0 0 12px; color: #f6b914; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.auth-hero h1 { margin: 0 0 14px; font: 700 clamp(34px, 4.2vw, 52px)/1.02 "Space Grotesk", sans-serif; letter-spacing: -.04em; color: #fff; }
.auth-hero h1 span { color: #f6b914; }
.auth-hero > p { margin: 0; color: #c3d1ca; font-size: 15px; line-height: 1.6; }
.auth-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.auth-pillars li { padding: 12px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.04); text-align: center; }
.auth-pillars i { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 10px; background: #f6b914; color: #10181b; font: 800 15px "Space Grotesk", sans-serif; font-style: normal; }
.auth-pillars li:nth-child(2) i { background: #7cc46a; } .auth-pillars li:nth-child(3) i { background: #58b4a6; } .auth-pillars li:nth-child(4) i { background: #e9eef0; }
.auth-pillars span { font-size: 11px; font-weight: 700; color: #dbe5df; }
.auth-tip { position: relative; z-index: 1; margin: 0; padding: 16px 18px; border-left: 3px solid #f6b914; border-radius: 0 12px 12px 0; background: rgba(0,0,0,.18); }
.auth-tip figcaption { color: #f6b914; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-tip blockquote { margin: 6px 0 0; color: #eef3f0; font-size: 14px; line-height: 1.5; }
.auth-org { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; color: #a9b8b0; font-size: 11px; }
.auth-org img { height: 34px; border-radius: 6px; background: #fff; padding: 3px; }

/* Form side */
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 20px; }
.auth-card { width: min(440px, 100%); padding: 34px; border: 1px solid #dfe5df; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(16,24,27,.08); }
.auth-card h2 { margin: 0 0 6px; font: 700 26px "Space Grotesk", sans-serif; letter-spacing: -.02em; color: #152024; }
.auth-card .auth-sub { margin: 0 0 22px; color: #6d787c; font-size: 14px; line-height: 1.5; }
.auth-field { display: grid; gap: 6px; margin-bottom: 14px; }
.auth-field label { font-size: 12px; font-weight: 800; color: #38454a; }
.auth-input { position: relative; }
.auth-card input[type=text], .auth-card input[type=password], .auth-card input[type=email] {
  width: 100%; box-sizing: border-box; height: 48px; padding: 0 44px 0 14px; border: 1.5px solid #dfe5df; border-radius: 12px;
  background: #fbfcfa; font: 500 15px "DM Sans", sans-serif; color: #152024; transition: border-color .15s, box-shadow .15s;
}
.auth-card input:focus { outline: none; border-color: #f6b914; box-shadow: 0 0 0 4px rgba(246,185,20,.18); background: #fff; }
.auth-reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #6d787c; font-size: 12px; font-weight: 800; cursor: pointer; padding: 6px; }
.auth-caps { display: none; margin-top: 4px; color: #a8681d; font-size: 12px; font-weight: 700; }
.auth-caps.on { display: block; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border: 0; border-radius: 12px;
  background: #152024; color: #fff; font: 800 15px "DM Sans", sans-serif; cursor: pointer; text-decoration: none; transition: transform .1s, box-shadow .15s; }
.auth-btn:hover { box-shadow: 0 10px 24px rgba(16,24,27,.22); } .auth-btn:active { transform: translateY(1px); }
.auth-btn.gold { background: #f6b914; color: #152024; }
.auth-btn.zebs { background: #fff; color: #152024; border: 1.5px solid #dfe5df; }
.auth-btn.zebs b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #1d4e89; color: #fff; font-size: 11px; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #9aa5a8; font-size: 12px; font-weight: 700; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #e6ebe6; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; }
.auth-links a, .auth-card a.auth-link { color: #1f6a40; font-weight: 700; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-note { margin: 14px 0 0; color: #6d787c; font-size: 12px; line-height: 1.5; }
.auth-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #fbeae7; color: #8f2f24; font-size: 13px; font-weight: 600; }
.auth-card .errorlist { margin: 4px 0 0; padding: 0; list-style: none; color: #a33a2e; font-size: 12px; font-weight: 700; }
.auth-extra { margin: 4px 0 16px; padding: 12px 14px; border-radius: 12px; background: #f6f8f5; }
.auth-extra summary { cursor: pointer; color: #38454a; font-size: 13px; font-weight: 800; }
.auth-extra[open] summary { margin-bottom: 10px; }
.auth-help { margin: 6px 0 0; color: #6d787c; font-size: 12px; line-height: 1.5; }
.auth-help ul { margin: 6px 0 0; padding-left: 18px; }
.auth-meter { height: 6px; margin-top: 8px; border-radius: 999px; background: #eef1ee; overflow: hidden; }
.auth-meter i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .2s, background .2s; }
.auth-meter-label { margin-top: 4px; color: #6d787c; font-size: 11px; font-weight: 700; }
.auth-status { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 0 18px; border-radius: 20px; font-size: 30px; }
.auth-status.ok { background: #ebf5ef; color: #27812d; } .auth-status.mail { background: #fff3d6; color: #986b00; } .auth-status.bad { background: #fbeae7; color: #c24b3d; }
.auth-legal { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 12px; }
.auth-legal a { color: #6d787c; text-decoration: none; } .auth-legal a:hover { color: #1f6a40; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 22px 20px; gap: 16px; }
  .auth-hero h1 { font-size: 28px; } .auth-hero > p, .auth-tip, .auth-org { display: none; }
  .auth-pillars { margin-top: 14px; } .auth-pillars li { padding: 8px 4px; } .auth-pillars i { width: 28px; height: 28px; }
  .auth-main { padding: 24px 16px 32px; justify-content: flex-start; }
  .auth-card { padding: 24px 20px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .auth-btn, .auth-card input, .auth-meter i { transition: none; } }

/* Undo Django admin defaults that leak into these pages. */
body.auth-page .auth ul, body.auth-page .auth li { list-style: none; }
body.auth-page .auth-pillars li { margin: 0; }
body.auth-page .auth blockquote { border: 0; padding: 0; font-size: 14px; color: #eef3f0; }
body.auth-page .auth a.auth-btn, body.auth-page .auth a.auth-btn:link, body.auth-page .auth a.auth-btn:visited { color: #fff; text-decoration: none; }
body.auth-page .auth a.auth-btn.gold, body.auth-page .auth a.auth-btn.gold:visited, body.auth-page .auth a.auth-btn.zebs, body.auth-page .auth a.auth-btn.zebs:visited { color: #152024; }
body.auth-page .auth h1, body.auth-page .auth h2 { padding: 0; background: none; text-transform: none; }
body.auth-page .auth input[type=submit], body.auth-page .auth button.auth-btn { text-transform: none; }
body.auth-page .auth a.auth-btn, body.auth-page .auth a.auth-btn:hover, body.auth-page .auth a.auth-btn:focus { text-decoration: none !important; }
/* Django admin's responsive CSS pads the page on small screens. */
body.auth-page, body.auth-page #container, body.auth-page #main, body.auth-page .main, body.auth-page #content,
body.auth-page #content-start, body.auth-page .content, body.auth-page .colM { padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; }
