.access-page {
    height: 100vh;
    height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--relf-black);
    background: var(--relf-surface);
    font-family: "Segoe UI", sans-serif;
}

.access-layout {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
}

.access-brand-panel {
    position: relative;
    min-height: 0;
    height: 100%;
    padding: clamp(1rem, 3vh, 3rem) clamp(2rem, 6vw, 6rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: var(--relf-white);
    background:
        linear-gradient(
            145deg,
            var(--relf-primary) 0%,
            var(--relf-secondary) 68%,
            #443A70 100%
        );
}

.access-brand-panel::before {
    position: absolute;
    right: -180px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(255, 255, 255, 0.04),
        0 0 0 84px rgba(255, 255, 255, 0.035);
}

.access-brand-panel::after {
    position: absolute;
    top: 38%;
    right: 12%;
    width: 110px;
    height: 110px;
    content: "";
    border: 1px solid rgba(240, 100, 5, 0.55);
    transform: rotate(45deg);
}

.access-eyebrow,
.access-brand-panel h1,
.access-back-link {
    position: relative;
    z-index: 1;
}

.access-eyebrow {
    margin-top: clamp(0.5rem, 2vh, 1.5rem);
    margin-bottom: 1.25rem;
    color: var(--relf-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.access-brand-panel h1 {
    max-width: 520px;
    margin: clamp(0.5rem, 3vh, 2rem) 0;
    font-size: clamp(1.8rem, 3vw + 3vh, 6rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.04em;
}

.access-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin: -1rem 0 2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.65;
}

.access-back-link {
    width: fit-content;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition:
        color 180ms ease,
        border-color 180ms ease;
}

.access-back-link:hover {
    color: var(--relf-white);
    border-color: var(--relf-white);
}

.access-form-panel {
    min-height: 0;
    height: 100%;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vh, 3rem) clamp(1.5rem, 6vw, 7rem);
    overflow: hidden;
    background: var(--relf-white);
}

.access-form-wrapper {
    width: min(100%, 470px);
}

.access-form-wrapper .section-eyebrow {
    margin-bottom: 0.85rem;
    color: var(--relf-accent);
}

.access-form-wrapper h2 {
    margin: 0;
    color: var(--relf-primary);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.access-form-intro {
    margin: 0.9rem 0 0;
    color: var(--relf-muted);
    line-height: 1.6;
}

#loginForm,
#forgotPasswordForm,
#resetPasswordForm {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.access-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.access-field label {
    color: var(--relf-primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.access-field input[type="email"],
.access-field input[type="text"],
.access-field input[type="password"] {
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 0.95rem;
    color: var(--relf-black);
    background: var(--relf-white);
    border: 1px solid rgba(33, 27, 67, 0.22);
    border-radius: 4px;
    outline: none;
    font: inherit;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.access-field input::placeholder {
    color: #a69b97;
}

.access-field input:focus {
    border-color: var(--relf-accent);
    box-shadow: 0 0 0 3px rgba(240, 100, 5, 0.2);
}

.access-field input.input-validation-error {
    border-color: #b02a37;
}

.field-validation-error {
    color: #b02a37;
    font-size: 0.82rem;
}

.access-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--relf-muted);
    font-size: 0.86rem;
}

.access-options a {
    color: var(--relf-secondary);
    font-weight: 700;
}

.access-options a:hover {
    color: var(--relf-primary);
    text-decoration: underline;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
}

.remember-option input {
    width: 17px;
    height: 17px;
    accent-color: var(--relf-primary);
}

.relf-button-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 0.75rem;
    color: var(--relf-white);
    background: var(--relf-primary);
    border-color: var(--relf-primary);
    cursor: pointer;
}

.relf-button-submit:hover {
    color: var(--relf-white);
    background: var(--relf-secondary);
    border-color: var(--relf-secondary);
}

.relf-button-submit:focus-visible,
.access-back-link:focus-visible,
.access-options a:focus-visible {
    outline: 3px solid rgba(240, 100, 5, 0.55);
    outline-offset: 4px;
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors {
    margin: 0;
    padding: 0.85rem 1rem;
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    border-radius: 4px;
    font-size: 0.9rem;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

@media (max-width: 900px) {
    .access-page {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .access-layout {
        flex: 0 0 auto;
        min-height: 100dvh;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .access-brand-panel,
    .access-form-panel {
        height: auto;
        overflow: visible;
    }

    .access-brand-panel {
        padding: clamp(0.75rem, 2vh, 2rem) 2rem;
    }

    .access-brand-panel h1 {
        margin: clamp(0.5rem, 2vh, 1.5rem) 0;
        font-size: clamp(1.5rem, 5vw + 2vh, 3.5rem);
    }

    .access-form-panel {
        padding: clamp(0.75rem, 2vh, 2rem) 2rem;
    }
}

@media (max-width: 520px) {
    .access-brand-panel h1 {
        margin: clamp(0.4rem, 1.5vh, 1rem) 0;
        font-size: clamp(1.3rem, 6vw + 2vh, 2.5rem);
    }

    .access-form-panel {
        padding: clamp(0.5rem, 2vh, 1.5rem) 1.25rem;
    }

    .access-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .access-field input,
    .access-back-link,
    .access-options a,
    .relf-button {
        transition: none;
    }
}