.auth-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: #e8eef4;
    color: #0f172a;
}

.auth-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    padding: 32px;
}

.auth-shell::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 36%;
    background: #dbe5ee;
    content: "";
}

.auth-login-surface {
    position: relative;
    display: grid;
    width: min(960px, 100%);
    min-height: 520px;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    overflow: hidden;
    border: 1px solid #cbd6e0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(36, 51, 68, 0.14);
}

.auth-brand-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-right: 1px solid #d6e0e9;
    background: #eef3f8;
    padding: 64px 52px;
}

.auth-brand-logo {
    display: block;
    width: min(100%, 430px);
    height: auto;
    user-select: none;
}

.auth-brand-fallback {
    font-size: 1.75rem;
    font-weight: 700;
    color: #172033;
}

.auth-form-pane {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 52px 44px 42px;
}

.auth-form-header h1 {
    margin: 8px 0 0;
    font-size: 1.5rem;
    font-weight: 650;
    line-height: 1.25;
    color: #0f172a;
}

.auth-form-header > p:last-child {
    margin: 10px 0 0;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: #5f6f82;
}

.auth-eyebrow {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #62748a;
}

.auth-error {
    margin-top: 22px;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    background: #fff1f2;
    padding: 10px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25rem;
    color: #be123c;
}

.auth-form {
    display: grid;
    gap: 17px;
    margin-top: 26px;
}

.auth-field {
    display: block;
}

.auth-field > span {
    display: block;
    margin-bottom: 7px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #52657a;
}

.auth-field input {
    display: block;
    width: 100%;
    height: 44px;
    border: 1px solid #c7d2de;
    border-radius: 6px;
    background: #ffffff;
    padding: 0 12px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #0f172a;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-field input:hover {
    border-color: #aebdca;
}

.auth-field input:focus {
    border-color: #647f9a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(116, 150, 184, 0.18);
}

.auth-submit {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: #101827;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

.auth-submit:hover {
    background: #243348;
}

.auth-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(116, 150, 184, 0.3);
}

.auth-release-meta {
    max-width: 100%;
    margin: 28px 0 0;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}


@media (max-width: 800px) {
    .auth-shell {
        padding: 20px;
    }

    .auth-shell::before {
        inset: 0 0 auto;
        width: auto;
        height: 34%;
    }

    .auth-login-surface {
        width: min(520px, 100%);
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-brand-pane {
        min-height: 150px;
        border-right: 0;
        border-bottom: 1px solid #d6e0e9;
        padding: 38px 42px;
    }

    .auth-brand-logo {
        width: min(100%, 360px);
    }

    .auth-form-pane {
        padding: 38px 42px 34px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        background: #ffffff;
    }

    .auth-shell {
        display: block;
        padding: 0;
    }

    .auth-shell::before {
        display: none;
    }

    .auth-login-surface {
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-brand-pane {
        min-height: 132px;
        padding: 34px 28px;
    }

    .auth-brand-logo {
        width: min(100%, 310px);
    }

    .auth-form-pane {
        justify-content: flex-start;
        padding: 36px 28px 28px;
    }
}
