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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 28px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
}

h1 {
    text-align: center;
    color: #1a1a2e;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 32px;
    font-size: 14px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-google {
    background: #4285f4;
    color: white;
}

.btn-google:hover {
    background: #3367d6;
}

.btn-yandex {
    background: #fc3f1d;
    color: white;
}

.btn-yandex:hover {
    background: #e63515;
}

.btn-vk {
    background: #0077ff;
    color: white;
}

.btn-vk:hover {
    background: #0066d9;
}

.btn-sms {
    background: #10b981;
    color: white;
}

.btn-sms:hover {
    background: #059669;
}

.btn-call {
    background: #f59e0b;
    color: white;
}

.btn-call:hover {
    background: #d97706;
}

.btn-qr {
    background: #6366f1;
    color: white;
}

.btn-qr:hover {
    background: #4f46e5;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 16px;
    color: #94a3b8;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.admin-link {
    text-align: center;
    margin-top: 24px;
}

.admin-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    background: #f1f5f9;
    transition: all 0.2s;
}

.admin-link a:hover {
    background: #e2e8f0;
}

.info-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.info-box p {
    margin: 6px 0;
}

.info-box i {
    margin-right: 6px;
    color: #667eea;
}

.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.flash-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

input {
    font-family: inherit;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 480px) {
    .container {
        padding: 32px 24px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ========================================
   VK OneTap страница
   ======================================== */

.vk-container {
    text-align: center;
}

.vk-container h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.vk-container .subtitle {
    margin-bottom: 32px;
}

#vkIdOneTap {
    margin: 20px 0;
    min-height: 60px;
}

.vk-info-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-top: 24px;
    font-size: 12px;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.vk-info-box p {
    margin: 6px 0;
}

.vk-info-box i {
    margin-right: 6px;
    color: #667eea;
}

.vk-back-link {
    margin-top: 20px;
}

.vk-back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vk-back-link a:hover {
    text-decoration: underline;
}

.vk-error {
    color: #ef4444;
    padding: 20px;
    text-align: center;
}

.vk-loading {
    color: #667eea;
    padding: 20px;
    text-align: center;
}

/* VK OneTap страница */
.vk-container {
    text-align: center;
}

.vk-button-container {
    margin: 30px 0;
}

.vk-button-container .btn-vk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #0077ff;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.vk-button-container .btn-vk:hover {
    background: #0066d9;
    transform: translateY(-2px);
}

.vk-info-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-top: 24px;
    font-size: 12px;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.vk-info-box p {
    margin: 6px 0;
}

.vk-info-box i {
    margin-right: 6px;
    color: #667eea;
}

.vk-back-link {
    margin-top: 20px;
}

.vk-back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vk-back-link a:hover {
    text-decoration: underline;
}
