.auth-page {
    min-height: 100vh;
    background: var(--eclipse-void);
}

.auth-shell {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
}

.auth-shell,
.auth-shell * {
    box-sizing: border-box;
}

.auth-brand {
    display: grid;
    justify-items: center;
    margin: 0 auto 32px;
    text-align: center;
}

.auth-mark {
    position: relative;
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 40px;
    place-items: center;
}

.auth-mark::before {
    position: absolute;
    inset: -50%;
    border-radius: 999px;
    background:
        radial-gradient(circle, transparent 25%, oklch(0.18 0.008 90 / 0.25) 45%, oklch(0.12 0.005 90 / 0.10) 60%, transparent 75%);
    content: "";
    filter: blur(10px);
}

.auth-mark::after {
    position: absolute;
    inset: -12%;
    border-radius: 999px;
    background:
        radial-gradient(circle, transparent 40%, oklch(0.32 0.012 90 / 0.30) 52%, oklch(0.22 0.008 90 / 0.15) 65%, transparent 80%);
    content: "";
    filter: blur(3px);
}

.auth-mark__void {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--eclipse-void);
    box-shadow: inset 0 0 16px oklch(0 0 0 / 0.50);
}

.auth-mark__rim {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid oklch(0.38 0.008 90 / 0.45);
    border-radius: 999px;
    box-shadow:
        0 0 10px oklch(0.55 0.012 90 / 0.12),
        inset 0 0 16px oklch(0 0 0 / 0.50);
    pointer-events: none;
}

.auth-brand h1 {
    margin: 0 0 12px;
    color: var(--eclipse-soft-white);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.1;
}

.auth-brand p {
    max-width: 280px;
    margin: 0;
    color: var(--eclipse-fog);
    font-size: 14px;
    line-height: 1.5;
}

.auth-panel {
    width: min(340px, calc(100vw - 32px));
    margin: 0 auto;
}

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

.auth-field {
    display: block;
}

.auth-input,
.auth-code-input {
    border: 1px solid rgb(255 255 255 / 0.13);
    border-radius: 6px;
    background: var(--eclipse-graphite);
    color: var(--eclipse-soft-white);
    font: inherit;
    outline: none;
    transition:
        background var(--eclipse-transition-fast),
        border-color var(--eclipse-transition-fast),
        box-shadow var(--eclipse-transition-fast);
}

.auth-input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
}

.auth-input::placeholder {
    color: var(--eclipse-ash);
}

.auth-input:focus,
.auth-code-input:focus {
    border-color: rgb(255 255 255 / 0.30);
    background: rgb(255 255 255 / 0.07);
    box-shadow: 0 0 0 3px rgb(255 255 255 / 0.055);
}

.auth-primary-button,
.auth-sso-button,
.auth-enterprise-link,
.auth-change-button {
    cursor: pointer;
    font: inherit;
    letter-spacing: 0;
}

.auth-primary-button {
    display: grid;
    width: 100%;
    min-height: 44px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 0.26);
    border-radius: 6px;
    background: var(--eclipse-soft-white);
    color: var(--eclipse-void);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition:
        background var(--eclipse-transition-fast),
        transform var(--eclipse-transition-fast);
}

.auth-primary-button:hover,
.auth-primary-button:focus-visible {
    background: var(--eclipse-bone);
    outline: none;
    transform: translateY(-1px);
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.auth-divider span {
    height: 1px;
    background: rgb(255 255 255 / 0.11);
}

.auth-divider em {
    color: var(--eclipse-ash);
    font-size: 12px;
    font-style: normal;
}

.auth-sso-list {
    display: grid;
    gap: 12px;
}

.auth-sso-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    border: 1px solid rgb(255 255 255 / 0.13);
    border-radius: 6px;
    background: transparent;
    color: var(--eclipse-bone);
    font-size: 14px;
    font-weight: 600;
    transition:
        background var(--eclipse-transition-fast),
        border-color var(--eclipse-transition-fast),
        color var(--eclipse-transition-fast),
        transform var(--eclipse-transition-fast);
}

.auth-sso-button:hover,
.auth-sso-button:focus-visible {
    border-color: rgb(255 255 255 / 0.24);
    background: rgb(255 255 255 / 0.055);
    color: var(--eclipse-soft-white);
    outline: none;
    transform: translateY(-1px);
}

.auth-sso-button__icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    color: var(--eclipse-fog);
}

.auth-sso-button__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.auth-enterprise-link,
.auth-change-button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--eclipse-fog);
    font-size: 12px;
    text-align: center;
}

.auth-enterprise-link {
    margin-top: 24px;
}

.auth-change-button {
    margin-top: 18px;
}

.auth-enterprise-link:hover,
.auth-enterprise-link:focus-visible,
.auth-change-button:hover,
.auth-change-button:focus-visible {
    color: var(--eclipse-bone);
    outline: none;
}

.auth-code-header {
    margin-bottom: 22px;
    text-align: center;
}

.auth-code-header span {
    color: var(--eclipse-ash);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-code-header h2 {
    margin: 8px 0 6px;
    color: var(--eclipse-soft-white);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.25;
}

.auth-code-header p {
    margin: 0;
    color: var(--eclipse-fog);
    font-size: 13px;
    line-height: 1.45;
}

.auth-code-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.auth-code-input {
    width: 100%;
    aspect-ratio: 1;
    min-height: 52px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
}

.auth-success {
    display: grid;
    min-height: 76px;
    margin-bottom: 14px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 8px;
    background: rgb(255 255 255 / 0.045);
    color: var(--eclipse-bone);
    font-size: 13px;
    text-align: center;
}

.auth-success[hidden] {
    display: none;
}

.auth-success--compact {
    min-height: 0;
    margin: 14px 0 0;
    padding: 11px 12px;
}

@media (max-width: 520px) {
    .auth-shell {
        padding: 24px 16px;
    }

    .auth-brand {
        margin-bottom: 28px;
    }

    .auth-mark {
        margin-bottom: 32px;
    }

    .auth-panel {
        width: 100%;
    }
}
