.login-page {
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: 2rem;
}

.auth-shell--login {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    width: min(70rem, 100%);
    min-height: min(40rem, calc(100svh - 4rem));
    margin: 0;
    padding: 3rem;
    border-radius: 1.5rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.auth-shell--login .auth-shell__brand-panel {
    display: block;
    width: calc(50% - 3rem);
    padding: 0;
    overflow: visible;
    color: var(--color-primary);
    background: transparent;
    text-align: left;
}

.auth-shell--login .auth-shell__brand {
    font-size: 2.75rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.auth-shell--login .auth-shell__panel {
    width: calc(50% - 3rem);
    max-width: 24rem;
    align-self: flex-start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.auth-shell--login .auth-shell__title {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-shell--login .auth-form {
    gap: 1.25rem;
}

.auth-shell--login .form-field {
    gap: 0.5rem;
}

.auth-shell--login .form-field label {
    font-size: 1rem;
    font-weight: 650;
}

.auth-shell--login .form-field input {
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-color: #bfbed2;
    border-radius: 0.65rem;
}

.auth-shell--login .form-field input::placeholder {
    color: #686477;
}

.auth-shell--login .auth-form__actions {
    margin-top: 0.15rem;
}

.auth-shell--login .auth-form__actions .btn {
    min-height: 3.25rem;
    font-size: 1rem;
    border-radius: 0.65rem;
}

.login-visual {
    position: absolute;
    inset: 1rem 1rem 1rem auto;
    width: 50%;
    overflow: hidden;
    border-radius: 1rem;
    background: radial-gradient(circle at 55% 45%, #f7f6ff, #eeebff 62%, #e1dfff);
}

.login-visual img {
    position: absolute;
    top: 15%;
    left: 2%;
    width: 102%;
    max-width: none;
    height: auto;
    /* Keep the artwork above the two-line caption at every panel height. */
    max-height: calc(79% - 7rem);
    object-fit: contain;
    object-position: center top;
}

.login-visual__caption {
    position: absolute;
    right: 2rem;
    bottom: 6%;
    left: 6%;
    margin: 0;
    color: var(--color-primary);
    font-family: var(--font-family-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

@media (max-width: 900px) {
    .login-page {
        padding: 1.5rem;
    }

    .auth-shell--login {
        align-items: stretch;
        gap: 2rem;
        max-width: 30rem;
        min-height: 0;
        padding: 2rem;
    }

    .auth-shell--login .auth-shell__brand {
        font-size: 2rem;
    }

    .auth-shell--login .auth-shell__brand-panel,
    .auth-shell--login .auth-shell__panel {
        width: 100%;
    }

    .login-visual {
        display: none;
    }
}

@media (max-width: 390px) {
    .login-page {
        padding: 1rem;
    }

    .auth-shell--login {
        padding: 1.5rem;
    }
}
