body.landing:has(.auth-page) {
    background:
        radial-gradient(ellipse at 20% 20%, color-mix(in srgb, var(--theme-raised) 42%, transparent), transparent 58%),
        linear-gradient(145deg, var(--theme-background) 30%, var(--theme-surface));
}

.auth-page {
    display: grid;
    place-items: center;
    flex: 1;
    padding-block: clamp(36px, 7vw, 88px);
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    width: min(100%, 800px);
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 24px;
    background: var(--theme-surface);
}

.auth-card-wide {
    width: min(100%, 980px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.auth-brand-panel {
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 100%;
    border-right: 1px solid var(--theme-border);
    background:
        repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--theme-border) 28%, transparent) 31px 32px),
        repeating-linear-gradient(90deg, transparent 0 31px, color-mix(in srgb, var(--theme-border) 28%, transparent) 31px 32px),
        radial-gradient(circle, var(--theme-background), var(--theme-raised));
}

.auth-brand-mark {
    display: grid;
    place-items: center;
    width: 148px;
    aspect-ratio: 1;
    border: 1px solid var(--theme-border);
    border-radius: 50%;
    background: var(--theme-background);
    box-shadow: 0 0 0 18px color-mix(in srgb, var(--theme-surface) 78%, transparent);
}

.auth-brand-mark img {
    object-fit: contain;
}

.auth-card-content {
    min-width: 0;
    padding: clamp(24px, 4vw, 48px);
}

.auth-heading {
    margin-bottom: 26px;
}

.auth-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -.05em;
}

.auth-heading p {
    max-width: 42ch;
    margin: 10px 0 0;
    color: var(--theme-muted);
}

.auth-form,
.auth-grid {
    display: grid;
    gap: 16px;
}

.auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .875rem;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid var(--theme-border);
    border-radius: 9px;
    background: var(--theme-background);
    color: var(--theme-text);
}

.auth-input[aria-invalid="true"] {
    border-color: var(--theme-text);
    box-shadow: inset 0 0 0 1px var(--theme-text);
}

.auth-password {
    position: relative;
}

.auth-password:has(.auth-password-toggle:not([hidden])) .auth-input {
    padding-inline-end: 48px;
}

.auth-password-toggle {
    position: absolute;
    inset-block: 3px;
    inset-inline-end: 3px;
    width: 40px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--theme-muted);
}

.auth-password-toggle:hover {
    background: var(--theme-raised);
    color: var(--theme-text);
}

.auth-password-toggle[aria-pressed="false"] .fa-eye-slash,
.auth-password-toggle[aria-pressed="true"] .fa-eye {
    display: none;
}

.auth-field-hint,
.auth-field-error {
    margin: 5px 0 0;
    font-size: .8125rem;
}

.auth-field-hint {
    color: var(--theme-muted);
}

.auth-field-error {
    font-weight: 700;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    width: fit-content;
    min-height: 32px;
    color: var(--theme-text);
    font-size: .875rem;
    cursor: pointer;
}

.auth-remember input {
    appearance: none;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid var(--theme-border);
    border-radius: 5px;
    background: var(--theme-background);
    cursor: inherit;
}

.auth-remember:hover input {
    border-color: var(--theme-text);
}

.auth-remember input:checked {
    border-color: var(--theme-text);
    background: var(--theme-text);
}

.auth-remember input:checked::before {
    content: '';
    width: 5px;
    height: 9px;
    border: solid var(--theme-background);
    border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg);
}

@media (forced-colors: active) {
    .auth-remember input {
        appearance: auto;
    }

    .auth-remember input::before {
        content: none;
    }
}

.auth-submit {
    position: relative;
    padding-inline: 42px;
    min-height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 9px;
    background: var(--theme-text);
    color: var(--theme-background);
    font-weight: 700;
}

.auth-submit span {
    position: absolute;
    inset-inline-end: 16px;
}

.auth-submit:hover {
    background: var(--theme-muted);
}

.auth-card-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--theme-border);
    color: var(--theme-muted);
    font-size: .875rem;
}

.auth-card-footer a {
    color: var(--theme-text);
    text-decoration: underline;
    font-weight: 700;
}

@media (max-width: 720px) {
    .auth-card,
    .auth-card-wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-brand-panel {
        min-height: 100px;
        border-right: 0;
        border-bottom: 1px solid var(--theme-border);
    }

    .auth-brand-mark {
        width: 60px;
        box-shadow: 0 0 0 8px var(--theme-surface);
    }

    .auth-brand-mark img {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 560px) {
    .auth-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
