:root {
    --bg: #0d0f12;
    --card: #15181d;
    --card-border: #262a32;
    --text: #f1f3f5;
    --muted: #9aa3ad;
    --accent: #5d8bf4;
    --accent-hover: #3f6fda;
    --error: #ff6b6b;
    --radius: 14px;
}

* { box-sizing: border-box; }

body.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #1a1f26, var(--bg));
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.auth-card {
    width: min(420px, 92vw);
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.auth-header {
    margin-bottom: 24px;
}

.auth-brand {
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 24px;
    margin: 0 0 16px;
}

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

.auth-form label {
    font-size: 13px;
    color: var(--muted);
}

.auth-form input,
.auth-form select {
    padding: 12px 14px;
    background: #0f1216;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-primary,
.auth-secondary {
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.auth-primary {
    background: var(--accent);
    color: white;
    margin-top: 8px;
}
.auth-primary:hover { background: var(--accent-hover); }

.auth-secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text);
    margin-top: 8px;
}

.auth-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--error);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.auth-hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 16px;
}

.auth-hint a, .auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    margin: 20px 0;
    gap: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.auth-idps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-idp {
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    text-align: center;
}
.auth-idp:hover { background: #1c2027; }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
}

/* ===== Language switcher ===== */
.lang-switcher { display: inline-flex; align-items: center; gap: 2px; }
.lang-form { display: inline; margin: 0; }
.lang-btn {
  background: none; border: 0; padding: 4px 6px; cursor: pointer;
  color: inherit; opacity: .55; font: inherit; font-size: 12px; letter-spacing: .04em;
}
.lang-btn:hover, .lang-btn:focus-visible { opacity: 1; text-decoration: underline; }
.lang-current { padding: 4px 6px; font-size: 12px; letter-spacing: .04em; font-weight: 600; }
