.auth-page {
    min-width: 0;
    background: #f4f7fb;
    color: #18324b;
}

.auth-shell {
    --auth-primary: #003f75;
    --auth-accent: #e5af28;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    background: #fff;
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    color: #fff;
    /* Keep the architectural image legible while retaining a dark enough
       reading field for the white chapter copy. */
    background-image: linear-gradient(125deg, #003f75cc 0%, #003f7566 46%, #002b5233 72%, transparent 100%), var(--auth-background);
    background-image: linear-gradient(125deg,
        color-mix(in srgb, var(--auth-primary) 78%, #002b52 22%) 0%,
        color-mix(in srgb, var(--auth-primary) 38%, transparent) 46%,
        color-mix(in srgb, #002b52 18%, transparent) 72%,
        transparent 100%), var(--auth-background);
    background-color: var(--auth-primary);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.auth-visual::after {
    content: '';
    position: absolute;
    inset: auto -10% -20% 20%;
    height: 55%;
    background: var(--auth-accent);
    opacity: .16;
    transform: rotate(-12deg);
    border-radius: 50%;
}

.auth-visual-inner {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100% - 5rem));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 6vw, 5rem);
}

.auth-brand,
.auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .08em;
    text-shadow: 0 2px 14px #002b52aa;
}

.auth-brand img,
.auth-mobile-brand img {
    width: 3.2rem;
    height: 3.2rem;
    object-fit: contain;
    padding: .3rem;
    border-radius: .7rem;
    background: #fff;
}

.auth-visual-copy {
    max-width: 540px;
    padding: 4rem 0;
}

.auth-eyebrow {
    color: var(--auth-accent);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .16em;
    margin: 0 0 1rem;
}

.auth-visual-copy h1 {
    max-width: 560px;
    margin: 0 0 1.25rem;
    font-size: clamp(2.5rem, 5vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-shadow: 0 3px 20px #002b52cc;
}

.auth-visual-copy p {
    max-width: 500px;
    margin: 0;
    color: #eaf3fa;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.75;
    text-shadow: 0 2px 12px #002b52cc;
}

.auth-visual-link {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 12px #002b52cc;
}

.auth-visual-link:hover,
.auth-visual-link:focus-visible {
    color: #fff;
    text-decoration: underline;
    outline: 3px solid #ffffff66;
    outline-offset: 4px;
}

.auth-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 5rem);
    background: #fff;
}

.auth-panel-inner {
    width: min(100%, 480px);
}

.auth-mobile-brand {
    display: none;
    color: var(--auth-primary);
    margin-bottom: 2rem;
}

.auth-mobile-brand img {
    width: 2.8rem;
    height: 2.8rem;
}

.auth-form-heading {
    margin-bottom: 2rem;
}

.auth-form-heading .auth-eyebrow {
    color: var(--auth-primary);
    margin-bottom: .7rem;
}

.auth-form-heading h2 {
    margin: 0 0 .75rem;
    color: var(--auth-primary);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.auth-form-heading p {
    margin: 0;
    color: #62778b;
    line-height: 1.65;
}

.auth-form {
    width: 100%;
}

.auth-field {
    margin-bottom: 1.15rem;
}

.auth-field label {
    display: block;
    margin-bottom: .45rem;
    color: #18324b;
    font-size: .88rem;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    min-height: 3.25rem;
    padding: .85rem 1rem;
    border: 1px solid #cbd9e4;
    border-radius: .7rem;
    color: #18324b;
    background: #fff;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-field input:focus {
    border-color: var(--auth-primary);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-primary) 18%, transparent);
}

.auth-field input.is-invalid {
    border-color: #c53d4f;
}

.auth-error {
    margin: .4rem 0 0;
    color: #b3263a;
    font-size: .86rem;
}

.auth-submit {
    width: 100%;
    min-height: 3.35rem;
    margin-top: .5rem;
    border: 0;
    border-radius: .7rem;
    background: var(--auth-primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    filter: brightness(1.1);
    outline: 3px solid color-mix(in srgb, var(--auth-primary) 35%, transparent);
    outline-offset: 2px;
    transform: translateY(-1px);
}

.auth-secondary {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    min-height: 3.2rem;
    align-items: center;
    margin-top: .7rem;
    border: 1px solid #cbd9e4;
    border-radius: .7rem;
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 700;
}

.auth-secondary:hover,
.auth-secondary:focus-visible {
    background: #f4f8fb;
    outline: 3px solid color-mix(in srgb, var(--auth-primary) 22%, transparent);
    outline-offset: 2px;
}

.auth-inline-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-top: 1.2rem;
}

.auth-inline-links a {
    color: var(--auth-primary);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-inline-links a:hover,
.auth-inline-links a:focus-visible {
    text-decoration: underline;
    outline: 3px solid color-mix(in srgb, var(--auth-primary) 20%, transparent);
    outline-offset: 3px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #62778b;
    font-size: .9rem;
}

.auth-checkbox input { width: 1rem; height: 1rem; accent-color: var(--auth-primary); }

.auth-form-note {
    margin: 1rem 0 0;
    color: #62778b;
    font-size: .82rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 360px; }
    .auth-visual-inner { width: min(100%, 720px); min-height: 360px; padding: 2rem clamp(1.25rem, 6vw, 3rem); }
    .auth-visual-copy { padding: 2.5rem 0 1rem; }
    .auth-visual-copy h1 { font-size: clamp(2.1rem, 8vw, 3.8rem); }
    .auth-panel { padding: 2.5rem clamp(1.25rem, 6vw, 3rem) 4rem; }
}

@media (max-width: 520px) {
    .auth-visual { min-height: 300px; }
    .auth-visual-inner { min-height: 300px; }
    .auth-visual-copy { padding-top: 1.5rem; }
    .auth-visual-copy p { font-size: .96rem; }
    .auth-visual-copy h1 { font-size: 2.2rem; }
    .auth-panel { align-items: flex-start; padding-top: 2rem; }
    .auth-mobile-brand { display: inline-flex; }
    .auth-inline-links { justify-content: flex-start; }
}
