/* ============ DKM Compliance - sign-in pages ("clean and light", Nov 2026) ============
   A soft brand panel on the left, the form on white on the right. Used by login.html and by the
   forgot / reset / OTP pages (auth/_shell.html). Same palette as portal.css: one blue accent, grey neutrals. */

:root {
  --accent: #2b4acb;
  --accent-dark: #1f38a3;
  --accent-soft: rgba(43, 74, 203, .08);
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --field: #d9dce1;
  --soft: #f7f8fa;
  /* kept for templates that still name them */
  --navy: #111827;
  --orange: #2b4acb;
  --orange-dark: #1f38a3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body { font-family: "Inter", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
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(--soft); border-right: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px 64px; }
.brand-logo { align-self: flex-start; }
.brand-logo img { display: block; width: 116px; height: auto; }
.brand-copy { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.brand-head { font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -.03em; color: var(--ink); }
.brand-head span { color: var(--accent); }
.brand-points { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; font-weight: 400; color: var(--ink-2); }
.brand-points li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.brand-points li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b4acb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.brand-foot { font-size: 12px; font-weight: 500; color: var(--faint); }

/* ---------------- right: the form ---------------- */
.panel { display: flex; align-items: center; justify-content: center; padding: 32px 24px; background: #fff; }
.card, .login-card {
  width: 100%; max-width: 380px; background: #fff; border: 0; padding: 8px 0;
  display: flex; flex-direction: column; gap: 18px;
}
.card-title { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }

/* portal switch */
.portal-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f1f2f4; border-radius: 9px; padding: 3px; }
.switch-btn { height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 500 13.5px "Inter", sans-serif; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.switch-btn:hover { color: var(--ink); }
.switch-btn.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 0 0 1px rgba(16, 24, 40, .04); }
.switch-btn:focus-visible, .submit-btn:focus-visible, .eye-btn:focus-visible, .link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* alerts */
.alert { font-size: 13.5px; font-weight: 500; line-height: 1.45; border-radius: 8px; padding: 10px 13px; border: 1px solid transparent; }
.alert-error   { background: #fdecea; color: #b42318; border-color: #f6cdc8; }
.alert-success { background: #e8f5ec; color: #157f3c; border-color: #c6e6d0; }
.alert-info    { background: #eaeefb; color: var(--accent-dark); border-color: #d3dbf6; }

/* fields: label above, input below */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field-label { display: block; }
.field-wrap { position: relative; display: block; }
.field input {
  width: 100%; height: 42px; border: 1px solid var(--field); border-radius: 8px; padding: 0 12px;
  font: 400 15px "Inter", sans-serif; color: var(--ink); background: #fff; outline: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--faint); }
.field input:hover { border-color: #c4c8cf; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.has-eye { padding-right: 44px; }
.eye-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; border-radius: 6px; color: var(--faint); cursor: pointer; }
.eye-btn:hover, .eye-btn.on { color: var(--ink); background: #f3f4f6; }
.eye-btn svg { width: 18px; height: 18px; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; }
.remember { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-weight: 400; cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.link { font-weight: 500; text-decoration: none; color: var(--accent); }
.link:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

.submit-btn { width: 100%; height: 42px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: 500 15px "Inter", sans-serif; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .1); transition: background .15s, transform .1s; }
.submit-btn:hover { background: var(--accent-dark); }
.submit-btn:active { transform: translateY(1px); }
.submit-btn.busy { pointer-events: none; opacity: .75; }
.copyright { text-align: center; font-size: 12.5px; color: var(--faint); }

/* ---------------- forgot / reset / OTP pages (auth/_shell.html) ---------------- */
.login-card { max-width: 400px; }
.login-card form { display: flex; flex-direction: column; gap: 16px; }
.card-head h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.card-head p { font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.55; margin-top: 8px; }
.card-foot { text-align: center; font-size: 13.5px; }

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