:root { --auth-navy: #101b31; --auth-slate: #4b617f; --auth-blue: #6f8fc2; --auth-pale: #edf3ff; --auth-line: #cbd7e8; --auth-red: #c9343b; --auth-ink: #1a2942; --auth-muted: #667894; }
* { box-sizing: border-box; }
body.auth-flow { min-height: 100vh; margin: 0; background: #101b31; color: var(--auth-ink); font-family: "Source Sans 3", Arial, sans-serif; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 52%) 1fr; }
.auth-story { position: relative; overflow: hidden; color: #fff; background: #17284a; }
.auth-story::before { content: ""; position: absolute; inset: 0; background: url("/static/images/cham-bg.jpeg") center / cover no-repeat; }
.auth-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 25, 51, .72), rgba(21, 45, 82, .42)); }
.story-inner { position: relative; z-index: 1; min-height: 100vh; padding: clamp(30px, 5vw, 68px); display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand img { width: 60px; height: 60px; object-fit: contain; padding: 5px; border-radius: 50%; background: rgba(255,255,255,.92); }
.auth-brand strong { display: block; font-size: .98rem; letter-spacing: .12em; }
.auth-brand span { display: block; margin-top: 3px; font-size: .77rem; opacity: .88; }
.story-copy { max-width: 405px; padding-bottom: 7vh; }
.story-copy::before { content: ""; display: block; width: 42px; height: 4px; margin-bottom: 22px; background: var(--auth-red); }
.story-copy h1 { margin: 0; font-size: clamp(2.3rem, 4.2vw, 4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; }
.story-copy p { margin: 17px 0 0; max-width: 350px; color: rgba(255,255,255,.9); font-size: 1.05rem; line-height: 1.55; }
.story-footer { font-size: .75rem; letter-spacing: .04em; opacity: .8; }
.auth-workspace { display: flex; align-items: center; justify-content: center; padding: 45px clamp(28px, 6vw, 78px); background: #f8faff; }
.auth-card { width: min(100%, 410px); }
.auth-kicker { margin: 0 0 9px; color: #5877aa; font-size: .77rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.auth-card h2 { margin: 0; color: var(--auth-ink); font-size: 2rem; line-height: 1.16; letter-spacing: -.025em; }
.auth-intro { margin: 10px 0 29px; color: var(--auth-muted); line-height: 1.5; }
.auth-form { display: grid; gap: 19px; }
.auth-label { display: block; margin-bottom: 8px; color: #2c3e5c; font-size: .88rem; font-weight: 700; }
.auth-input { position: relative; }
.auth-input > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #6d8fc5; pointer-events: none; }
.auth-input input { width: 100%; height: 52px; padding: 0 42px 0 43px; border: 1px solid var(--auth-line); border-radius: 5px; outline: 0; color: var(--auth-ink); background: var(--auth-pale); font: inherit; transition: border-color .18s, box-shadow .18s, background .18s; }
.auth-input input:focus { border-color: #6688c2; background: #fff; box-shadow: 0 0 0 3px rgba(102,136,194,.16); }
.auth-input input::placeholder { color: #8b9ab1; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; color: #6680aa; background: transparent; cursor: pointer; padding: 7px; }
.auth-action { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .9rem; }
.auth-link { color: #315d9d; font-weight: 600; text-decoration: none; }
.auth-link:hover { color: #24497e; text-decoration: underline; }
.auth-submit { height: 52px; border: 0; border-radius: 5px; color: #fff; background: var(--auth-slate); box-shadow: 0 5px 10px rgba(28,48,82,.16); cursor: pointer; font: 700 1rem "Source Sans 3", sans-serif; transition: transform .18s, background .18s, box-shadow .18s; }
.auth-submit:hover { background: #374d6c; box-shadow: 0 8px 15px rgba(28,48,82,.22); transform: translateY(-1px); }
.auth-submit:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.auth-alert { margin: 0; padding: 11px 13px; border-left: 3px solid var(--auth-red); color: #923337; background: #fff1f1; font-size: .9rem; }
.auth-success { margin: 0; padding: 11px 13px; border-left: 3px solid #4b7e66; color: #27553d; background: #edf8f0; font-size: .9rem; }
.auth-note { display: flex; gap: 8px; margin: 27px 0 0; padding-top: 19px; border-top: 1px solid #dce4f0; color: #70819b; font-size: .82rem; line-height: 1.4; }
.auth-note i { margin-top: 3px; color: #6686b9; }
.otp-input input { letter-spacing: .32em; font-size: 1.12rem; font-weight: 700; }
.password-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 13px; margin: -3px 0 0; padding: 13px; border: 1px solid #dce5f1; border-radius: 5px; background: #f4f7fc; }
.password-rules p { grid-column: 1 / -1; margin: 0 0 1px; color: #455875; font-size: .78rem; font-weight: 700; }
.password-rule { color: #7b899e; font-size: .78rem; }
.password-rule i { margin-right: 5px; color: #a5b1c1; }
.password-rule.is-valid { color: #386e54; }
.password-rule.is-valid i { color: #3f8a62; }
.password-match { display: none; margin: -8px 0 0; font-size: .8rem; }
.password-match.is-shown { display: block; }
.password-match.is-valid { color: #386e54; }.password-match.is-invalid { color: #a33d43; }
@media (max-width: 820px) { .auth-shell { grid-template-columns: 1fr; }.auth-story { display: none; }.auth-workspace { min-height: 100vh; padding: 32px 24px; background: linear-gradient(155deg, #f9fbff, #eaf0fa); }.auth-card::before { content: "CHAMIS  •  INTEGRATED INFORMATION SYSTEM"; display: block; margin-bottom: 38px; color: var(--auth-navy); font-size: .75rem; font-weight: 700; letter-spacing: .08em; } }
@media (max-width: 420px) { .password-rules { grid-template-columns: 1fr; } }
