@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --bg-primary: #f0ebe3;
    --text-primary: #2c1e10;
    --text-secondary: #6b5744;
    --border-glass: rgba(180, 160, 130, 0.25);
    --radius-lg: 20px;
    --shadow-lg: 0 16px 48px rgba(100, 80, 50, 0.18);
}

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

body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.auth-btn:hover:not(.disabled) {
    transform: translateY(-1px);
}

.auth-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-btn-google { background: #4285f4; }
.auth-btn-vk { background: #0077ff; }

.auth-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 800;
}

.auth-hint {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: #b45309;
    line-height: 1.4;
}

.auth-hint.hidden { display: none; }

.auth-error { color: #dc2626; margin: 1rem 0; }

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.auth-urls {
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}

.auth-urls a {
    color: var(--text-secondary);
}

.auth-hint code {
    font-size: 0.75rem;
    word-break: break-all;
}

.auth-hint strong {
    display: block;
    margin-bottom: 0.35rem;
}

.user-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    font-size: 0.85rem;
}

.user-bar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-bar .logout-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.user-bar .logout-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}