/* Стили для страницы авторизации */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.auth-box {
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-error {
    display: block;
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.btn-block {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Test Users Section */
.test-users {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.test-user-cards {
    display: grid;
    gap: 0.75rem;
}

.test-user-card {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.test-user-card:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.test-user-role {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.test-user-role.admin {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.test-user-role.moderator {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.test-user-role.user {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.test-user-email {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.test-user-password {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Responsive */
@media (max-width: 640px) {
    .auth-box {
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
}

/* Animation for spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Online indicator dot */
.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}