:root {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #eef2ff, #dbeafe 45%, #eff6ff 100%);
    color: #0f172a;
    padding: 32px 16px;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: center;
}

.brand {
    padding: 24px;
}

.eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    font-weight: 600;
    margin-bottom: 16px;
}

.brand h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 16px;
}

.brand p {
    margin: 0 0 16px;
    line-height: 1.6;
    color: #475569;
}

.brand ul {
    padding-left: 20px;
    color: #475569;
    line-height: 1.6;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    position: relative;
}

.tab-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #f1f5f9;
    border-radius: 16px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 24px;
}

.tab-switch button {
    border: none;
    padding: 12px 0;
    border-radius: 12px;
    background: transparent;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.tab-switch button.is-active {
    background: #fff;
    color: #111827;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.form-panel {
    display: none;
}

.form-panel.is-active {
    display: block;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 18px;
    font-size: 1rem;
}

button[type="submit"] {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 8px;
}

.support-text {
    text-align: center;
    margin-top: 16px;
    color: #64748b;
    font-size: 0.95rem;
}

.message {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #ecfdf5;
    color: #047857;
}

.message.error {
    background: #fef2f2;
    color: #b91c1c;
}

.site-footer {
    text-align: center;
    margin-top: 32px;
    color: #475569;
    font-size: 0.95rem;
}

.site-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.language-switcher {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.language-switcher label {
    font-weight: 600;
    color: #0f172a;
}

.language-switcher__controls {
    display: flex;
    justify-content: center;
}

.language-switcher select {
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    font-size: 0.95rem;
    min-width: 180px;
    background: #fff;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 24px;
    }

    body {
        padding: 24px 16px;
    }
}
