/* ==========================================================================
   Sign-in pages (index.php, mobile.php, otp.php, forget-pswd.php; markup in includes/auth-shell.php), in the new
   signup's look: Poppins, one navy accent. The form on the left; ERPCA on a navy panel on the right (hidden on
   narrow screens).
   ========================================================================== */
:root {
    --au-ink: #101828; --au-ink-2: #344054; --au-ink-3: #5d6b7e; --au-ink-4: #98a2b3;
    --au-surface: #ffffff; --au-subtle: #f8fafc; --au-hover: #f2f5f9;
    --au-border: #e4e8ee; --au-border-strong: #cdd5df;
    --au-accent: #1f4e79; --au-accent-2: #173d60; --au-accent-soft: #eaf1f8;
    --au-good: #157347; --au-good-soft: #e6f4ec; --au-bad: #b42318; --au-bad-soft: #fdecea;
    --au-radius: 12px; --au-radius-sm: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--au-surface); color: var(--au-ink-2); font: 15px/1.55 Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--au-accent); }
:focus-visible { outline: 2px solid var(--au-accent); outline-offset: 2px; }
button, input { font: inherit; }

.au { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- the form column ---------- */
.au-main { display: flex; flex-direction: column; padding: 24px 48px 24px; }
.au-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.au-logo img { display: block; width: 104px; height: auto; }
.au-signup { margin: 0; font-size: 13px; color: var(--au-ink-3); }
.au-signup a { font-weight: 500; text-decoration: none; }
.au-signup a:hover { text-decoration: underline; }
.au-body { width: 100%; max-width: 400px; margin: auto; padding: 40px 0 32px; }

.au-body h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.2; font-weight: 600; color: var(--au-ink); letter-spacing: -0.02em; }
.au-lead { margin: 0 0 24px; font-size: 15px; color: var(--au-ink-3); }
.au-lead strong { color: var(--au-ink-2); font-weight: 500; overflow-wrap: anywhere; }

.au-org { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 12px 14px; border: 1px solid var(--au-border); border-radius: var(--au-radius-sm); background: var(--au-subtle); }
.au-org-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--au-accent); color: #fff; font-weight: 600; }
.au-org-label { display: block; font-size: 12px; color: var(--au-ink-3); }
.au-org-name { display: block; font-weight: 500; color: var(--au-ink); overflow-wrap: anywhere; }

/* ---------- messages (the pages' own ids and classes: div_error, err_msg, success_message) ---------- */
.err_msg, .success_message { font-size: 14px; }
.err_msg:not(:empty), .success_message:not(:empty) { margin: 0 0 18px; padding: 10px 14px; border-radius: var(--au-radius-sm); }
.err_msg:not(:empty) { background: var(--au-bad-soft); color: var(--au-bad); }
.success_message:not(:empty) { background: var(--au-good-soft); color: var(--au-good); }
.err_msg a { color: var(--au-accent); font-weight: 500; }
.au-alert { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--au-radius-sm); background: var(--au-bad-soft); color: var(--au-bad); }
.au-alert strong { display: block; margin-bottom: 2px; font-weight: 600; }

/* ---------- fields ---------- */
.au-field { margin: 0 0 18px; }
.au-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.au-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--au-ink-2); }
.au-field-head label { margin: 0; }
.au-field input { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--au-border-strong); border-radius: var(--au-radius-sm);
    background: var(--au-surface); color: var(--au-ink); font-size: 15px; }
.au-field input::placeholder { color: var(--au-ink-4); }
.au-field input:focus { outline: none; border-color: var(--au-accent); box-shadow: 0 0 0 4px var(--au-accent-soft); }
.au-pass { position: relative; }
.au-pass input { padding-right: 48px; }
.au-pass .toggle-password { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px;
    background: none; color: var(--au-ink-3); font-size: 15px; cursor: pointer; }
.au-pass .toggle-password:hover { background: var(--au-hover); color: var(--au-ink); }
.au-small { font-size: 13px; font-weight: 500; text-decoration: none; }
.au-small:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.au-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; padding: 0 22px; border: 0; border-radius: var(--au-radius-sm);
    background: var(--au-accent); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s; }
.au-btn:hover { background: var(--au-accent-2); color: #fff; }
.au-btn-line { background: var(--au-surface); color: var(--au-ink); border: 1px solid var(--au-border-strong); }
.au-btn-line:hover { background: var(--au-hover); color: var(--au-ink); }
.au-btn-line img { width: 16px; height: 16px; }
.au-btn + .au-btn { margin-top: 10px; }
.au-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 12px; color: var(--au-ink-4); text-transform: uppercase; letter-spacing: .06em; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--au-border); }
.au-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; font-size: 14px; color: var(--au-ink-3); }
.au-links a { font-weight: 500; text-decoration: none; }
.au-links a:hover { text-decoration: underline; }
.au-center { justify-content: center; }

/* ---------- footer ---------- */
.au-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; font-size: 12px; color: var(--au-ink-3); }
.au-foot a { color: inherit; text-decoration: none; }
.au-foot a:hover { color: var(--au-ink); }
.au-foot span { display: flex; gap: 18px; }

/* ---------- the ERPCA side ---------- */
.au-side { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 56px; color: #fff; overflow: hidden;
    background: radial-gradient(120% 80% at 100% 0%, #2c6aa3 0%, rgba(44, 106, 163, 0) 60%), linear-gradient(160deg, #1f4e79 0%, #12304d 100%); }
.au-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 56px solid rgba(255, 255, 255, .05); }
.au-side-in { position: relative; z-index: 1; max-width: 460px; }
.au-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.au-side h2 { margin: 0 0 36px; font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.au-points { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.au-points li { display: flex; gap: 14px; }
.au-points b { display: block; font-weight: 500; }
.au-points li > span:last-child { font-size: 14px; color: rgba(255, 255, 255, .75); }
.au-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.au-ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1080px) { .au-side { padding: 40px; } .au-side h2 { font-size: 26px; } }
@media (max-width: 900px) {
    .au { grid-template-columns: 1fr; }
    .au-side { display: none; }
}
@media (max-width: 480px) {
    .au-main { padding: 18px 16px 20px; }
    .au-body { padding: 32px 0 24px; }
    .au-body h1 { font-size: 24px; }
    .au-signup { font-size: 12px; }
}
