/* Sign-in page */
body.auth { background: #f3f5f8; min-height: 100vh; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); min-height: 100vh; }
.auth-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 10% 0%, #0b3d70 0%, rgba(11,61,112,0) 60%), linear-gradient(160deg, #00244a 0%, #001a36 55%, #00122a 100%); }
.auth-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #c41d30 0 60%, #cc992b 60% 100%); }
.auth-truss { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 56px 64px; max-width: 680px; }
.auth-logo { background: #fff; border-radius: 12px; padding: 12px 18px; display: inline-flex; align-self: flex-start; box-shadow: 0 10px 30px rgba(0,0,0,.25); margin-bottom: 36px; }
.auth-logo img { height: 78px; width: auto; display: block; }
.auth-hero h1 { color: #fff; font-size: 30px; max-width: 560px; letter-spacing: .03em; margin: 0 0 14px; line-height: 1.05; }
.auth-lead { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 520px; margin: 0 0 28px; }
.auth-feat { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; }
.auth-feat li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: #fff; }
.auth-feat span { color: #cc992b; font-size: 12px; }
.auth-cert { font-family: var(--head); letter-spacing: .08em; font-size: 13px; color: #cc992b; text-transform: uppercase; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }
.auth-co { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.6); }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; position: relative; }
.auth-top { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; justify-content: flex-end; align-items: center; }
.auth-mlogo { display: none; height: 40px; width: auto; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 36px 34px 28px; box-shadow: 0 1px 2px rgba(0,36,74,.06), 0 18px 48px rgba(0,36,74,.10); border-top: 4px solid var(--accent); }
.auth-h { border: 0; padding: 0; font-size: 26px; margin: 0 0 6px; }
.auth-sub { color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.af { display: block; margin-bottom: 16px; }
.af > span { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; letter-spacing: .02em; }
.af input { width: 100%; height: 46px; border: 1px solid #cfd6df; border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; background: #fbfcfd; transition: border-color .15s, box-shadow .15s; }
.af input:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(29,90,153,.14); background: #fff; }
.apw { position: relative; display: block; }
.apw input { padding-right: 46px; }
.apw-t { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; background: transparent; color: #8a96a3; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.apw-t.on, .apw-t:hover { color: var(--navy); background: #eef2f6; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: -2px 0 18px; }
.achk { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 13px; cursor: pointer; }
.achk input { width: 16px; height: 16px; accent-color: var(--navy); }
.auth-btn { width: 100%; height: 48px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px rgba(196,29,48,.25); transition: transform .08s, background .15s; }
.auth-btn:hover { background: #a8172a; }
.auth-btn:active { transform: translateY(1px); }
.auth-err { background: #fdecee; color: #8f1424; border: 1px solid #f5c2c8; border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; font-size: 13px; }
.auth-hint { color: var(--muted); font-size: 12px; margin: -6px 0 18px; }
.auth-foot { color: var(--muted); font-size: 12px; text-align: center; margin: 16px 0 0; }
.auth-legal { margin-top: 22px; color: #8a96a3; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { min-height: 100vh; justify-content: flex-start; padding: 84px 16px 24px;
    background: linear-gradient(180deg, #00244a 0 230px, #f3f5f8 230px); }
  .auth-top { justify-content: space-between; }
  .auth-mlogo { display: block; background: #fff; border-radius: 8px; padding: 4px 8px; height: 44px; }
  .auth-top .lang { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
  .auth-card { padding: 28px 20px 22px; }
}
.auth-alt { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-alt a { font-weight: 600; color: var(--steel); }
.auth-ok { background: #e9f6ef; color: #1d6b43; border: 1px solid #bfe3cf; border-radius: 10px; padding: 10px 12px; margin-top: 14px; font-size: 13px; }
.auth-dom { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.auth-dom span { background: #eef3f8; color: var(--navy); border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.auth-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.auth-steps li { counter-increment: s; display: flex; gap: 8px; align-items: baseline; }
.auth-steps li::before { content: counter(s); flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; display: grid; place-items: center; }
@media (max-width: 900px) { .auth-h { font-size: 22px; } }

/* password checklist */
.pwbox { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid #dbe3ec; border-radius: 10px; background: #f7f9fc; font-size: 12.5px; }
.pwmeter { height: 6px; border-radius: 4px; background: #e4e9f0; overflow: hidden; }
.pwmeter i { display: block; height: 100%; width: 0; background: #c0392b; transition: width .2s, background .2s; }
.pwmeter i.mid { background: #d99a1e; } .pwmeter i.good { background: #1e8e5a; }
.pwlvl { display: block; min-height: 16px; margin: 6px 0 4px; font-weight: 700; color: #00244a; }
.pwrules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3px 14px; }
.pwrules li { position: relative; padding-left: 20px; color: #5b6b7d; line-height: 1.45; }
.pwrules li::before { content: "○"; position: absolute; left: 2px; color: #9aa8b8; }
.pwrules li.ok { color: #1e6e47; } .pwrules li.ok::before { content: "✔"; color: #1e8e5a; }
.pwrules li.no { color: #a33a2c; } .pwrules li.no::before { content: "✖"; color: #c0392b; }
.pwtip { margin: 8px 0 0; color: #6b7a8c; font-size: 12px; }
.alert.warn { background: #fff7e6; border: 1px solid #f0c36d; color: #6b4a00; }
/* pages without the dark side panel (privacy.php): the bar is part of the flow, above the card */
.auth-top.inline { position: static; justify-content: space-between; margin: 0 0 16px; }
.auth-top.inline .auth-mlogo { display: block; height: 44px; }
.auth-top.inline .lang { background: #fff; color: var(--navy); border-color: var(--line); }
