:root {
  --blue: #55aee7;
  --blue-dark: #143c61;
  --blue-soft: #eaf6fd;
  --ink: #17324d;
  --muted: #6c7d8d;
  --line: #dce6ef;
  --danger: #b42318;
  --success: #067647;
  --surface: #ffffff;
  --background: #f4f8fb;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(85,174,231,.17), transparent 35%),
    linear-gradient(135deg, #eef7fd 0%, #f7fafc 55%, #eef5fa 100%);
}
button, input { font: inherit; }
.auth-shell {
  min-height: 100vh;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .8fr);
  gap: 70px;
  align-items: center;
  padding: 48px 0;
}
.auth-brand { padding: 18px; }
.auth-brand-card { display: flex; align-items: center; gap: 18px; margin-bottom: 42px; }
.auth-logo { width: 76px; height: 76px; object-fit: contain; background: white; border-radius: 20px; padding: 8px; box-shadow: 0 10px 30px rgba(20,60,97,.12); }
.auth-brand-name { font-size: 1.35rem; font-weight: 850; letter-spacing: .07em; color: var(--blue-dark); }
.auth-brand-subtitle { margin-top: 4px; font-size: .93rem; font-weight: 700; letter-spacing: .08em; color: #55718b; }
.auth-brand h1 { max-width: 700px; margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.04; letter-spacing: -.04em; color: #133b5d; }
.auth-brand > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.auth-security-note { display: inline-flex; flex-direction: column; gap: 3px; margin-top: 34px; padding: 15px 18px; border: 1px solid #cde5f5; background: rgba(255,255,255,.65); border-radius: 14px; }
.auth-security-note strong { color: var(--blue-dark); }
.auth-security-note span { color: var(--muted); font-size: .92rem; }
.auth-card { width: 100%; min-height: 550px; background: var(--surface); border: 1px solid rgba(20,60,97,.08); border-radius: 26px; padding: 38px; box-shadow: 0 24px 65px rgba(26,65,96,.15); }
.auth-panel[hidden] { display: none !important; }
.auth-heading { margin-bottom: 28px; }
.auth-kicker { display: block; margin-bottom: 8px; color: #459bd4; font-weight: 800; font-size: .74rem; letter-spacing: .13em; }
.auth-heading h2 { margin: 0 0 6px; color: var(--blue-dark); font-size: 1.85rem; }
.auth-heading p { margin: 0; color: var(--muted); }
.auth-label { display: block; margin: 18px 0 7px; font-size: .86rem; font-weight: 750; color: #334d63; }
.auth-input { width: 100%; height: 46px; border: 1px solid #cbd9e4; border-radius: 10px; padding: 0 13px; color: var(--ink); background: #fff; outline: none; transition: border-color .18s, box-shadow .18s; }
.auth-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(85,174,231,.15); }
.password-field { position: relative; }
.password-field .auth-input { padding-right: 76px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #4a7899; font-size: .78rem; font-weight: 750; cursor: pointer; }
.auth-primary { width: 100%; margin-top: 25px; height: 46px; border: 0; border-radius: 10px; background: var(--blue); color: white; font-weight: 850; letter-spacing: .04em; cursor: pointer; box-shadow: 0 10px 22px rgba(85,174,231,.24); }
.auth-primary:hover { background: #459fd9; }
.auth-primary:disabled { opacity: .65; cursor: wait; }
.auth-links { display: flex; justify-content: space-between; gap: 18px; margin-top: 22px; }
.auth-link, .auth-back { padding: 0; border: 0; background: transparent; color: #347eae; font-weight: 750; font-size: .83rem; cursor: pointer; }
.auth-back { margin-top: 22px; }
.auth-link:hover, .auth-back:hover { text-decoration: underline; }
.password-rule { margin: 10px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.auth-alert { margin-bottom: 20px; border-radius: 10px; padding: 11px 13px; font-size: .9rem; border: 1px solid transparent; }
.auth-alert.is-error { color: #8a1c14; border-color: #f1c7c3; background: #fff2f0; }
.auth-alert.is-success { color: var(--success); border-color: #a9dfc9; background: #ecfdf3; }
@media (max-width: 850px) {
  .auth-shell { width: min(560px, calc(100% - 28px)); grid-template-columns: 1fr; gap: 24px; padding: 25px 0; }
  .auth-brand { padding: 6px; }
  .auth-brand-card { margin-bottom: 22px; }
  .auth-brand h1 { font-size: 2rem; }
  .auth-brand > p, .auth-security-note { display: none; }
  .auth-card { min-height: auto; padding: 28px 22px; border-radius: 20px; }
}
@media (max-width: 430px) {
  .auth-links { flex-direction: column; align-items: flex-start; }
}
