/* ============ DKM Compliance - sign-in pages, "split brand panel" (login concept 01) ============
   Navy brand panel on the left, the form on a light panel on the right. Used by login.html and by the
   forgot / reset / OTP pages (auth/_shell.html). The previous dark-glass look is kept in login.css +
   login_glass.html / auth/_shell_glass.html. */

:root {
  --navy: #0b1437;
  --orange: #f26b21;
  --orange-dark: #dc5a14;
  --accent: #f26b21;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --soft: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body { font-family: "Manrope", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--soft); -webkit-font-smoothing: antialiased; }
a { color: var(--orange); }
a:hover { color: #c2410c; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- layout: two halves ---------------- */
.split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* ---------------- left: brand panel ---------------- */
.brand { background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 56px 64px; }
.brand-logo { align-self: flex-start; background: #fff; border-radius: 12px; padding: 10px 14px; }
.brand-logo img { display: block; width: 120px; height: auto; }
.brand-copy { display: flex; flex-direction: column; gap: 22px; }
.brand-head { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 500; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.5px; }
.brand-head span { color: var(--orange); }
.brand-points { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 500; color: #cbd5e1; }
.brand-points li { display: flex; gap: 10px; align-items: center; }
.brand-points li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }
.brand-foot { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #64748b; }

/* ---------------- right: the form ---------------- */
.panel { display: flex; align-items: center; justify-content: center; padding: 32px 24px; background: var(--soft); }
.card, .login-card {
  width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px -30px rgba(15, 23, 42, .25);
}
.card-title { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }

/* portal switch */
.portal-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f1f5f9; border-radius: 12px; padding: 4px; }
.switch-btn { height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 13px "Manrope", sans-serif; cursor: pointer; transition: background .18s, color .18s; }
.switch-btn:hover { color: var(--ink); }
.switch-btn.active { background: var(--navy); color: #fff; }
.switch-btn:focus-visible, .submit-btn:focus-visible, .eye-btn:focus-visible, .link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* alerts */
.alert { font-size: 13px; font-weight: 600; line-height: 1.45; border-radius: 12px; padding: 10px 13px; border: 1px solid transparent; }
.alert-error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* fields: label above, input below */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.field-label { display: block; }
.field-wrap { position: relative; display: block; }
.field input {
  width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px;
  font: 500 15px "Manrope", sans-serif; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 107, 33, .14); }
.field input.has-eye { padding-right: 46px; }
.eye-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; border-radius: 9px; color: var(--faint); cursor: pointer; }
.eye-btn:hover, .eye-btn.on { color: var(--ink); background: #f1f5f9; }
.eye-btn svg { width: 18px; height: 18px; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.remember { display: flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 500; cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--orange); }
.link { font-weight: 700; text-decoration: none; color: var(--orange); }
.link:hover { color: #c2410c; text-decoration: underline; }

.submit-btn { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--orange); color: #fff; font: 800 15px "Manrope", sans-serif; cursor: pointer; transition: background .15s, transform .1s; }
.submit-btn:hover { background: var(--orange-dark); }
.submit-btn:active { transform: translateY(1px); }
.submit-btn.busy { pointer-events: none; opacity: .75; }
.copyright { text-align: center; font-size: 12px; color: var(--faint); }

/* ---------------- forgot / reset / OTP pages (auth/_shell.html) ---------------- */
.login-card { max-width: 440px; }
.login-card form { display: flex; flex-direction: column; gap: 16px; }
.card-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.card-head p { font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.card-foot { text-align: center; font-size: 13px; }

/* ---------------- small screens: the brand panel becomes a header ---------------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .brand { padding: 24px; gap: 16px; }
  .brand-head { font-size: 26px; line-height: 1.12; }
  .brand-points, .brand-foot { display: none; }
  .panel { align-items: flex-start; padding: 24px 16px 32px; }
  .card, .login-card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
