:root {
    color-scheme: light;
    --bg: linear-gradient(135deg, #0f172a 0%, #1d2b64 40%, #28313b 100%);
    --panel: #f8fafc;
    --text: #0f172a;
    --muted: #6b7280;
    --accent: #38bdf8;
    --accent-strong: #0284c7;
    --danger: #f43f5e;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    background-image: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-shell {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.auth-panel,
.auth-preview {
    background: var(--panel);
    border-radius: 28px;
    padding: 48px;
    box-shadow: var(--shadow);
}

.auth-preview {
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12), transparent 60%), var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(15, 23, 42, 0.75);
    color: white;
    padding: 32px;
    max-width: 320px;
    text-align: left;
    line-height: 1.5;
}

.glass h2 {
    margin-top: 0;
    font-size: 1.75rem;
}

header {
    margin-bottom: 32px;
}

.eyebrow {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.subtitle {
    color: var(--muted);
    margin-top: 12px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--muted);
}

.field input,
.field select {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: white;
    font-size: 1rem;
}

.field input:focus,
.field select:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

.primary {
    border: none;
    border-radius: 18px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    color: white;
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

.muted {
    color: var(--muted);
    margin: 0;
}

.muted a {
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 500;
}

.form-feedback {
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-feedback.error {
    background: rgba(244, 63, 94, 0.12);
    color: var(--danger);
}

.form-feedback.success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.divider {
    border: none;
    border-top: 1px dashed rgba(15, 23, 42, 0.15);
    margin: 32px 0;
}

.small {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .auth-panel,
    .auth-preview {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .glass {
        width: 100%;
    }
}
