:root {
    --primary: #2b4b9e;
    --primary-light: #4a7ad4;
    --primary-dark: #1a3066;
    --primary-bg: #eef3fc;
    --text-dark: #1a2332;
    --text-muted: #5a6e8a;
    --border-light: #dce4f0;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(43, 75, 158, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #f8faff;
    color: var(--text-dark);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f5ff 0%, #dce8f7 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(43, 75, 158, 0.08);
    border: 1px solid var(--border-light);
}

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

.auth-header .logo span {
    color: var(--text-dark);
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 16px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 16px;
    background: #fafcff;
    color: var(--text-dark);
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(43, 75, 158, 0.06);
}

.btn-primary {
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(43, 75, 158, 0.2);
}

.error-message {
    padding: 12px 16px;
    background: #fde8e8;
    color: #cc4444;
    border-radius: 10px;
    font-size: 14px;
    border-left: 4px solid #cc4444;
}

.auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.auth-footer p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.test-accounts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.test-accounts span {
    font-size: 12px;
    background: var(--primary-bg);
    padding: 4px 12px;
    border-radius: 6px;
    color: var(--primary);
    font-family: monospace;
}

/* VK Button */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 14px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}
.auth-divider span {
    padding: 0 16px;
}
.btn-vk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: #2787F5;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    width: 100%;
}
.btn-vk:hover {
    background: #1a6fc4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 135, 245, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
    .auth-card {
        padding: 32px 20px;
    }
}
