/* Sign-in / create account: "Brand site" look (navy panel, amber pill button, Plus Jakarta Sans) */
:root {
  --navy: #121640; --accent: #1E2A6E; --ink: #121433; --text: #575B72;
  --amber: #F5B32C; --amber-dark: #D4920F; --on-amber: #2A1900;
  --lavender: #ECEEF5; --band: #F4F5FA; --hairline: #E1E4F0;
  --input-fill: #F7F8FD; --input-ring: #DFE3F3; --error: #B42318;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
.auth-body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text); background: #fff; -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.auth-page { display: grid; grid-template-columns: 1fr; min-height: 100vh; padding: 6px; gap: 6px; }
@media (min-width: 900px) { .auth-page { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 8px; gap: 8px; } }

/* ---- navy panel ---- */
.auth-hero {
  background-color: var(--navy);
  background-image:
    radial-gradient(60% 55% at 92% 0%, rgb(30 42 110 / .55), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, rgb(245 179 44 / .16), transparent 70%),
    radial-gradient(rgb(255 255 255 / .07) 1.1px, transparent 1.4px);
  background-size: auto, auto, 22px 22px;
  border-radius: 22px; color: rgb(255 255 255 / .8);
  padding: 24px 24px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
@media (min-width: 900px) { .auth-hero { border-radius: 28px; padding: 40px 44px; } }
.hero-brand { display: flex; align-items: center; gap: 12px; }
.logo-tile { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hero-name { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.hero-copy h1 {
  color: #fff; font-weight: 800; margin: 0 0 14px; line-height: 1.12; letter-spacing: -0.025em;
  font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.6rem); text-wrap: balance; max-width: 22ch;
}
@media (min-width: 900px) { .hero-copy h1 { max-width: 20ch; } }
.hero-copy p { margin: 0 0 18px; max-width: 46ch; text-wrap: pretty; }
.underline-word {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5 Q 13 1 25 5 T 50 5 T 75 5 T 99 4' fill='none' stroke='%23E3A23B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 0.34em;
  padding-bottom: 0.2em;
}
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points svg { flex: 0 0 20px; margin-top: 3px; }
@media (max-width: 899px) { .hero-points, .hero-copy p { display: none; } .auth-hero { gap: 14px; } .hero-copy h1 { margin: 0; font-size: 1.35rem; } }

/* ---- form panel ---- */
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 20px 12px 32px; }
.auth-card { width: 100%; max-width: 420px; }
.mode-switch { display: inline-flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; cursor: pointer;
  border: 0; border-radius: 999px; padding: 0 18px; height: 40px; box-shadow: inset 0 0 0 1px #D9DCE8;
  transition: background-color .18s, color .18s, box-shadow .18s;
}
.chip:hover { box-shadow: inset 0 0 0 1px #AEB4CF; }
.chip.on { background: var(--navy); color: #fff; box-shadow: none; }

.auth-form h2 { margin: 0 0 4px; color: var(--ink); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.lead { margin: 0 0 22px; font-size: 15px; }
.form-alert {
  background: #FFF7F7; color: var(--error); box-shadow: inset 0 0 0 1.5px #DC4C4C;
  border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; line-height: 1.5; margin-bottom: 18px;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #2B2F48; margin-bottom: 6px; }
.req { color: var(--amber-dark); }
.field input[type=text], .field input[type=email], .field input[type=password] {
  width: 100%; height: 45px; border: 0; border-radius: 12px; background: var(--input-fill); color: var(--ink);
  font: inherit; font-size: 14px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--input-ring);
  transition: box-shadow .18s, background-color .18s; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #64687D; }
.field input:hover { box-shadow: inset 0 0 0 1px #C7CDEC; }
.field input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgb(30 42 110 / .12); }
.field.invalid input { background: #FFF7F7; box-shadow: inset 0 0 0 1.5px #DC4C4C; }
.field.valid input { box-shadow: inset 0 0 0 1.5px #1F7A4D; }
.help { font-size: 12px; margin-top: 6px; color: #64687D; min-height: 18px; line-height: 1.5; }
.field.invalid .help { color: var(--error); font-weight: 600; }
.field.valid .help { color: #1F7A4D; font-weight: 600; }
.caps-note { font-size: 12px; font-weight: 600; color: var(--amber-dark); margin-top: 6px; }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 64px; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 33px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.pass-toggle:hover { background: var(--lavender); }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.strength i { height: 4px; border-radius: 2px; background: var(--hairline); transition: background-color .2s; }
.strength[data-level="1"] i:nth-child(1) { background: #DC4C4C; }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--amber-dark); }
.strength[data-level="3"] i:nth-child(-n+3) { background: #5B8C5A; }
.strength[data-level="4"] i { background: #1F7A4D; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45; }
.check small { display: block; font-weight: 400; font-size: 12.5px; color: #64687D; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: var(--input-fill);
  box-shadow: inset 0 0 0 1.5px #B9BED8; display: inline-flex; align-items: center; justify-content: center; transition: background-color .18s, box-shadow .18s;
}
.check .box::after {
  content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .15s;
}
.check input:checked + .box { background: var(--navy); box-shadow: none; }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--amber); outline-offset: 3px; }

.btn-primary {
  width: 100%; height: 43px; border: 0; border-radius: 999px; background: var(--amber); color: var(--on-amber);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 2px rgb(18 22 64 / .2);
  transition: background-color .18s, transform .1s;
}
.btn-primary:hover { background: #F8C14F; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .65; cursor: progress; }
.alt { text-align: center; font-size: 14px; margin: 16px 0 0; }
.link-btn { border: 0; background: none; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.link-btn:hover { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) { .auth-card .field input { font-size: 16px; } .chip { height: 44px; } .btn-primary { height: 46px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
