/* Login page — "Login Orbit" design (split layout). Requires design-system.css. */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--surface-page);
}

a {
    color: var(--text-link);
    text-decoration: none;
}

a:hover {
    color: var(--text-link-hover);
}

.auth-layout {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text-body);
    background: var(--surface-page);
}

/* Brand panel */

.auth-aside {
    order: 2;
    flex: 1.15 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px);
    background: var(--surface-inverse);
    color: var(--text-inverse);
}

.auth-aside__intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand svg {
    display: block;
    flex: none;
}

.auth-brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-brand__name {
    font-size: 1.375rem;
    font-weight: var(--weight-black);
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--neutral-050);
}

.auth-brand__tagline {
    font-size: var(--text-caption-size);
    font-weight: var(--text-eyebrow-weight);
    letter-spacing: var(--text-eyebrow-ls);
    text-transform: uppercase;
    line-height: 1;
    color: var(--brand-yellow-500);
}

.auth-aside__title {
    max-width: 22ch;
    margin: 0;
    font-size: var(--text-h2-size);
    font-weight: var(--text-h2-weight);
    line-height: var(--text-h2-lh);
    letter-spacing: var(--text-h2-ls);
    text-wrap: balance;
}

.auth-aside__lead {
    max-width: 38ch;
    margin: 0;
    font-family: var(--font-serif);
    font-size: var(--text-lead-size);
    line-height: var(--text-lead-lh);
    color: var(--neutral-300);
    text-wrap: pretty;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-small-size);
    color: var(--neutral-300);
}

.auth-features .ds-icon {
    color: var(--brand-yellow-500);
}

.auth-aside__help {
    margin: 0;
    font-size: var(--text-caption-size);
    color: var(--neutral-400);
}

/* Form panel */

.auth-main {
    order: 1;
    flex: 0.85 1 360px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 32px);
}

.auth-card {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.auth-card__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-card__eyebrow {
    margin: 0;
    font-size: var(--text-eyebrow-size);
    font-weight: var(--text-eyebrow-weight);
    letter-spacing: var(--text-eyebrow-ls);
    text-transform: uppercase;
    color: var(--brand-orange-500);
}

.auth-card__title {
    margin: 0;
    font-size: var(--text-h3-size);
    font-weight: var(--text-h3-weight);
    line-height: var(--text-h3-lh);
    letter-spacing: var(--text-h3-ls);
}

.auth-card__subtitle {
    margin: 0;
    font-size: var(--text-body-size);
    line-height: var(--text-body-lh);
    color: var(--text-muted);
    text-wrap: pretty;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--status-danger);
    border-radius: var(--radius-md);
    background: var(--status-danger-bg);
    color: var(--brand-red-700);
    font-size: var(--text-small-size);
    line-height: var(--text-small-lh);
    font-weight: var(--weight-medium);
}

.auth-alert .ds-icon {
    margin-top: 3px;
    color: var(--brand-red-600);
}

.auth-alert--success {
    border-color: var(--status-success);
    background: var(--status-success-bg);
    color: #1f6040;
}

.auth-alert--success .ds-icon {
    color: var(--status-success);
}

.auth-link {
    font-size: var(--text-small-size);
    font-weight: var(--weight-medium);
}

.auth-link:focus-visible,
.auth-card__back a:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.auth-card__back {
    margin: -8px 0 0;
    text-align: center;
    font-size: var(--text-small-size);
}

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

.auth-card__footnote {
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-caption-size);
    line-height: var(--text-caption-lh);
    color: var(--text-subtle);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px;
    }
}
