.auth-page {
    --auth-display-font: OceanicText, "Times New Roman", serif;
    --auth-body-font: UN11ST, -apple-system, BlinkMacSystemFont, sans-serif;
    --auth-mono-font: ModernGothicMono, "JetBrains Mono", monospace;
    --auth-brand-font: ABCMonumentGrotesk, -apple-system, sans-serif;
    margin: 0;
    color: var(--color-text-primary);
    font-family: var(--auth-body-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    background: var(--color-background);
}

.auth-start {
    min-height: 100dvh;
    background: var(--color-background);
}

.auth-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
}

.auth-hero,
.auth-form-panel {
    box-sizing: border-box;
    min-width: 0;
}

@media (min-width: 1024px) {
    .auth-main {
        flex-direction: row;
        align-items: stretch;
        min-height: 100dvh;
    }

    .auth-hero,
    .auth-form-panel {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
        min-height: 100dvh;
    }
}

.auth-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 80px clamp(24px, 8vw, 148px);
    background: var(--color-surface);
}

.auth-intro {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 480px;
}

.auth-heading {
    margin: 0;
    font-family: var(--auth-display-font);
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--color-text-primary);
}

@media (min-width: 769px) {
    .auth-heading {
        font-size: 56px;
    }
}

.auth-subheading {
    margin: 0;
    font-family: var(--auth-body-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-muted);
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    width: 100%;
    max-width: 480px;
    margin-top: 64px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-border);
}

@media (min-width: 640px) {
    .auth-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.auth-feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--color-surface);
}

.auth-feature-title {
    margin: 0;
    font-family: var(--auth-body-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-primary);
}

.auth-feature-description {
    margin: 0;
    font-family: var(--auth-body-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-muted);
    opacity: 0.8;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 80px 24px;
    border-top: 1px solid var(--color-border);
    background: var(--color-background);
}

@media (min-width: 1024px) {
    .auth-form-panel {
        padding: 120px 48px;
        border-top: 0;
        border-left: 1px solid var(--color-border);
    }
}

.auth-form-wrap {
    width: 100%;
    max-width: 427px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-button-outline,
.auth-button-solid,
.auth-input,
.auth-password-field {
    width: 100%;
}

.auth-button-outline,
.auth-button-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.auth-button-outline {
    background: var(--color-surface);
    box-shadow: inset 0 0 0 1px var(--color-border);
    color: var(--color-text-primary);
    font-family: var(--auth-body-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
}

.auth-button-outline:hover:not(:disabled) {
    background: var(--color-background);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-border) 80%, var(--color-text-muted));
}

.auth-button-outline:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-button-solid {
    background: var(--color-primary);
    color: var(--color-surface);
    font-family: var(--auth-mono-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.auth-button-solid:hover:not(:disabled) {
    background: var(--color-primary-hover);
}

.auth-button-solid:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 8px 0;
    color: var(--color-text-muted);
    font-family: var(--auth-brand-font);
    font-size: 14px;
    line-height: 1.3;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-field {
    display: block;
    width: 100%;
}

.auth-input-shell {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 1px;
    border-radius: 4px;
    background: var(--color-surface);
    box-shadow: inset 0 0 0 1px var(--color-border);
}

.auth-input-shell:focus-within {
    box-shadow: inset 0 0 0 1px var(--color-primary), 0 0 0 1px var(--color-primary);
}

.auth-input,
.auth-password-field .auth-input {
    width: 100%;
    height: 30px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--auth-body-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
}

.auth-input::placeholder {
    color: var(--color-text-muted);
}

.auth-password-field {
    position: relative;
}

.auth-password-field .auth-input-shell {
    padding-right: 40px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    color: var(--color-text-primary);
}

.auth-password-toggle svg {
    width: 18px;
    height: 18px;
}

.auth-helper-text {
    margin: -4px 0 0;
    font-family: var(--auth-body-font);
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.auth-panel-copy {
    margin: 0;
    font-family: var(--auth-body-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.auth-forgot-link {
    margin: -4px 0 0;
    font-family: var(--auth-body-font);
    font-size: 14px;
    line-height: 1.3;
    text-align: right;
}

.auth-forgot-link a {
    color: var(--color-primary);
    text-decoration: none;
}

.auth-forgot-link a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.auth-status-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-status-title {
    margin: 0;
    font-family: var(--auth-display-font);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
}

.auth-status-email {
    color: var(--color-text-primary);
    font-weight: 400;
}

.auth-button-link {
    display: inline-flex;
    text-decoration: none;
}

.auth-signin-link {
    margin: 16px 0 0;
    font-family: var(--auth-body-font);
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    color: var(--color-text-muted);
}

.auth-signin-link a {
    color: var(--color-primary);
    font-weight: inherit;
    text-decoration: none;
}

.auth-signin-link a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.auth-2fa-section {
    margin-top: 1rem;
}

.auth-2fa-help {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.hidden {
    display: none !important;
}
