/* The pages a person sees before sign-in and after an error: Login, ForgotPassword, ErrorPage (T2-11).
   Sign-in and reset share a split shell: a navy brand panel on the left, the form on a tinted panel with a faint grid on the right.
   The error page is one calm card under a navy bar. No photo, no motion. App colours and radii from theme-overrides.css, Roboto.
   Load order on each page: bootstrap.css, theme-overrides.css, fontawesome-6/all.min.css, Roboto/Roboto.css, this file. */

html, body { height: 100%; margin: 0; }

/* ── Split shell (sign-in, reset) ── */
body.split-body { margin: 0; font-family: Roboto, Verdana, sans-serif; background: #0b3a67; }
.split-form { margin: 0; min-height: 100vh; }
.split { --arc: clamp(18px, 2.2vw, 44px); display: flex; min-height: 100vh; background: #083160; }
.split-brand {
    flex: 0 0 calc(44% + var(--arc)); max-width: calc(44% + var(--arc)); box-sizing: border-box; position: relative; overflow: hidden; color: #fff;
    padding: clamp(2rem, 5vh, 4rem) calc(var(--arc) + 2rem) clamp(2rem, 5vh, 4rem) clamp(2rem, 4.8vw, 5.5rem); display: flex; flex-direction: column; justify-content: center;
    background:
        url(auth-net.svg) center top / 100% auto no-repeat,
        url(auth-waves.svg) center bottom / 100% auto no-repeat,
        linear-gradient(165deg, #0f4f8d 0%, #0b3f74 50%, #083160 100%);
}
.split-brand > * { position: relative; }
.split-logo { position: absolute; top: clamp(2rem, 5vh, 4rem); left: clamp(2rem, 4.8vw, 5.5rem); height: clamp(72px, 7.6vw, 140px); width: auto; }
.split-tag { font-size: clamp(2.2rem, 3.9vw, 4.6rem); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.split-rule { width: clamp(60px, 5vw, 96px); height: 4px; background: #f2c200; margin: clamp(1.25rem, 2.4vw, 2.5rem) 0; border-radius: 2px; }
.split-desc { font-size: clamp(1rem, 1.5vw, 1.7rem); line-height: 1.5; color: rgba(255, 255, 255, .92); max-width: 30em; margin: 0; }

.split-main {
    flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center;
    padding: clamp(1.5rem, 4vh, 3rem) 1.5rem 1.5rem; background: #dfe8f3; margin-left: calc(-1 * var(--arc));
    /* The edge is a shallow parabola cut by the #splitArch clip-path (inline svg in the page), not a rounded corner: rounded corners flare out flat at the
       top and bottom. For a straight edge: remove the clip-path and set margin-left: 0 and --arc: 0px on .split. */
    -webkit-clip-path: url(#splitArch); clip-path: url(#splitArch);
}
.split-center { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; }
.split-card {
    width: 100%; max-width: 480px; box-sizing: border-box; padding: 2.25rem 2.5rem; background: #fbfcfe;
    border: 1px solid #e3e8ef; border-radius: var(--erm-radius-card, 10px);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 18px 40px rgba(16, 24, 40, .10);
}
.split-foot { padding-top: 1.25rem; font-size: .85rem; color: #3b4756; text-align: center; }
.split-foot a { color: var(--bs-primary); text-decoration: none; }
.split-foot a:hover { text-decoration: underline; }
.split-foot .sep { margin: 0 .9rem; color: #5b6670; }

/* ── Sign-in form ── */
.split-brandname { text-align: center; font-size: 2rem; font-weight: 700; color: var(--bs-primary); letter-spacing: -.01em; padding-bottom: 1rem; border-bottom: 1px solid #dde3ea; }
.split-title { text-align: center; font-size: 1.65rem; font-weight: 700; color: #0e2547; margin: 1.25rem 0 .3rem; letter-spacing: -.01em; }
.split-sub { text-align: center; color: #3b4756; font-size: 1rem; margin: 0 0 1.25rem; }
.split-card label { display: block; font-weight: 600; font-size: .95rem; color: #0e2547; margin: 1rem 0 .35rem; }
.split-card .form-check label { display: inline; font-weight: 400; margin: 0; font-size: .95rem; }
.split-card .form-check input { width: 1.15em; height: 1.15em; }
.field { position: relative; }
.field .field-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #5b6670; font-size: 1.1em; pointer-events: none; z-index: 2; }
.field .form-control { height: 48px; padding-left: 3rem; font-size: 1rem; border-radius: var(--erm-radius-control, 6px); border: 1px solid #c3ccd8; background: #fff; }
.field .form-control.has-toggle { padding-right: 3.2rem; }
.field .form-control:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .2); }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); z-index: 2; background: none; border: 0; color: #4a5565; padding: .55rem .7rem; border-radius: var(--erm-radius-control, 4px); cursor: pointer; font-size: 1.1em; }
.pw-toggle:hover { color: var(--bs-primary); }
.pw-toggle:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.caps-hint { font-size: .85rem; color: #8a5a00; margin-top: .4rem; }
.split-row { display: flex; align-items: center; justify-content: space-between; margin: 1rem 0 1.25rem; }
.split-link { color: var(--bs-primary); text-decoration: none; font-size: .95rem; }
.split-link:hover { text-decoration: underline; }
.btn-wrap { position: relative; }
.btn-signin {
    display: block; width: 100%; height: 50px; border: 0; border-radius: var(--erm-radius-control, 6px); background: #0a3f75; color: #fff;
    font-size: 1.05rem; font-weight: 600; letter-spacing: .2px; cursor: pointer; padding-right: 2.2rem;
}
.btn-signin:hover, .btn-signin:focus { background: #08335e; color: #fff; }
.btn-signin:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.btn-arrow { position: absolute; top: 50%; left: calc(50% + 2.9em); transform: translateY(-50%); color: #fff; pointer-events: none; font-size: 1rem; }
.split-secure { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 1rem 0 0; color: #3b4756; font-size: .85rem; text-align: left; }
.split-secure i { color: var(--bs-primary); font-size: 1.35em; }

/* ── Password reset (markup unchanged; only the look) ── */
.reset-container { width: 100%; max-width: 480px; }
.reset-card { background: #fbfcfe; border-radius: var(--erm-radius-card, 10px); padding: 2.25rem 2.5rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 14px 34px rgba(16, 24, 40, .10); border: 1px solid var(--erm-border, #e3e8ef); }
.reset-card h2 { font-size: 1.35rem; font-weight: 500; color: var(--bs-primary); text-align: center; margin: 0 0 .4rem; }
.reset-card .subtitle { font-size: .875rem; color: var(--erm-text-secondary, #5b6670); text-align: center; margin: 0 0 1.5rem; line-height: 1.5; }
.step-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe2; }
.step-dot.active { background: var(--bs-primary); transform: scale(1.2); }
.step-dot.done { background: #198754; }
.step-line { width: 48px; height: 2px; background: #d5dbe2; }
.step-line.done { background: #198754; }
.step-line.active { background: var(--bs-primary); }
.icon-box { width: 60px; height: 60px; background: var(--bs-primary); border-radius: var(--erm-radius-card, 10px); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: #fff; font-size: 24px; }
.form-group { margin-bottom: 1.1rem; position: relative; }
.form-group label { font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: .35rem; display: block; }
.input-wrapper { position: relative; }
.input-wrapper .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #6c7a89; font-size: .9rem; pointer-events: none; }
.input-wrapper input[type="text"], .input-wrapper input[type="password"] {
    width: 100%; border: 1px solid #ced4da; border-radius: var(--erm-radius-control, 4px); height: 46px; padding: 0 44px 0 42px; font-size: .95rem; color: #212529; background: #fff; outline: none;
}
.input-wrapper input:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .2); }
.toggle-password { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #5b6670; cursor: pointer; font-size: .9rem; padding: .5rem .6rem; border-radius: .375rem; }
.toggle-password:hover { color: var(--bs-primary); }
.toggle-password:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.strength-meter { margin-top: .5rem; }
.strength-bar { height: 4px; border-radius: 2px; background: #e5e7eb; overflow: hidden; }
.strength-bar .strength-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; width: 0; }
.strength-label { font-size: .75rem; margin-top: .25rem; color: #5b6670; text-align: right; }
.btn-submit {
    width: 100%; padding: .7rem; border: 0; border-radius: var(--erm-radius-control, 4px); background: var(--bs-primary); color: #fff; font-weight: 500; font-size: 1rem; cursor: pointer;
    margin-top: .5rem; display: flex; align-items: center; justify-content: center; gap: .5rem; letter-spacing: .5px;
}
.btn-submit:hover { background: #0a3558; color: #fff; }
.back-link { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 1.25rem; color: var(--bs-primary); font-size: .85rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.alert-styled { border-radius: var(--erm-radius-tile, 6px); padding: .75rem 1rem; font-size: .85rem; margin-bottom: 1rem; display: flex; align-items: flex-start; gap: .6rem; }
.alert-styled i { margin-top: 2px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.success-icon, .expired-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 32px; }
.success-icon { background: #f0fdf4; color: #16a34a; }
.expired-icon { background: #fef2f2; color: #dc2626; }

/* ── Error page: one calm card under the navy bar ── */
body.err-body { margin: 0; background: #e9eff7; font-family: Roboto, Verdana, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
body.err-body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(to right, rgba(13, 67, 116, .09) 1px, transparent 1px), linear-gradient(to bottom, rgba(13, 67, 116, .09) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 0%, rgba(0, 0, 0, .5) 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 0%, rgba(0, 0, 0, .5) 60%, transparent 100%);
}
.err-form { margin: 0; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; }
.auth-foot { background: var(--bs-primary); color: rgba(255, 255, 255, .85); padding: .6rem 1rem; text-align: center; font-size: .8rem; position: relative; z-index: 1; }
.err-hero { flex: 1; display: flex; flex-direction: column; padding-bottom: 3rem; }
.err-bar { display: flex; align-items: center; gap: .6rem; padding: .5rem clamp(18px, 4vw, 56px); font-size: 1.15rem; color: #fff; background: var(--bs-primary); }
.err-bar img { height: 32px; background: #fff; border-radius: var(--erm-radius-control, 4px); padding: .25rem; }
.err-content {
    margin: auto; width: calc(100% - 2rem); max-width: 560px; box-sizing: border-box; padding: 2rem;
    background: #fff; border: 1px solid var(--erm-border, #e3e8ef); border-top: 3px solid var(--bs-primary); border-radius: var(--erm-radius-card, 10px);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 28px rgba(16, 24, 40, .10);
}
.err-tag {
    display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bs-primary);
    background: #e8eef4; border: 1px solid #c5d3e0; border-radius: var(--erm-radius-control, 4px); padding: .15rem .6rem; margin-bottom: .9rem;
}
.err-title { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; color: var(--bs-primary); margin: 0 0 .75rem; }
.err-title em { font-style: normal; }
.err-sub { font-size: 1rem; color: #495057; line-height: 1.6; margin: 0 0 1.25rem; }
.err-panel { background: #f6f8fb; border: 1px solid var(--erm-border, #e3e8ef); border-radius: var(--erm-radius-tile, 6px); padding: .75rem 1rem; margin-bottom: .75rem; font-size: .9rem; color: #212529; }
.err-warn { background: #fff8e1; border-color: #ffe08a; color: #664d03; }
.error-ref { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.error-ref .ref-label { color: #5b6670; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; display: block; }
.error-ref .ref-value { font-family: Consolas, "Courier New", monospace; font-size: .88rem; color: #212529; word-break: break-all; display: block; }
.btn-copy { flex: none; background: #fff; border: 1px solid var(--bs-primary); color: var(--bs-primary); padding: .3rem .8rem; font-size: .8rem; cursor: pointer; border-radius: var(--erm-radius-control, 4px); }
.btn-copy:hover { background: var(--bs-primary); color: #fff; }
.err-hint { font-size: .85rem; color: #5b6670; margin: .25rem 0 1.25rem; }
.err-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-home, .btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.25rem; font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer;
    border-radius: var(--erm-radius-control, 4px); border: 1px solid transparent;
}
.btn-home { background: var(--bs-primary); color: #fff; border-color: var(--bs-primary); }
.btn-home:hover { background: #0a3558; border-color: #0a3558; color: #fff; text-decoration: none; }
.btn-ghost { background: #fff; color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-ghost:hover { background: #eef3f8; }
.btn-home:focus-visible, .btn-ghost:focus-visible, .btn-copy:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.tech-detail { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--erm-radius-tile, 6px); padding: 1rem 1.25rem; text-align: left; font-size: .75rem; color: #475569; max-height: 200px; overflow-y: auto; word-break: break-word; margin-top: 1.25rem; }
.tech-detail-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5b6670; margin-bottom: .5rem; }

/* ── Narrow screens: the brand panel becomes a slim navy header ── */
@media (max-width: 900px) {
    .split { flex-direction: column; }
    .split-brand { flex: none; max-width: none; padding: 1rem 1.25rem; flex-direction: row; align-items: center; background: linear-gradient(165deg, #0f4f8d, #083160); }
    .split-logo { position: static; height: 40px; }
    .split-copy { display: none; }
    .split { --arc: 0px; }
    .split-main { -webkit-clip-path: none; clip-path: none; margin-left: 0; padding: 1.5rem 1rem; }
    .split-center { align-items: flex-start; }
    .split-card, .reset-card { padding: 1.5rem 1.25rem; }
}
@media (max-width: 480px) {
    .err-content { padding: 1.5rem 1.25rem; }
}
