/* 
 * Auth styles - Стили для страниц авторизации
 * CrystalZakaz.ru - Современный фиолетовый дизайн 2025
 */

/* ============================================
   LOGIN PAGE - Градиентный фон
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background shapes */
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(180deg); }
}

.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* ============================================
   AUTH CARD - Glassmorphism эффект
   ============================================ */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   LOGO - Градиентный текст
   ============================================ */
.auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.auth-logo h1 span {
    font-weight: 800;
}

.auth-logo p {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.auth-card .form-group {
    margin-bottom: 1.25rem;
}

.auth-card label {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
}

.auth-card input {
    background: rgba(249, 250, 251, 0.8);
    border: 2px solid var(--gray-200);
}

.auth-card input:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.auth-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* ============================================
   INFO & FOOTER
   ============================================ */
.auth-info {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.auth-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.auth-footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.auth-footer a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 1.25rem;
    }
    
    .auth-logo h1 {
        font-size: 2rem;
    }
    
    .auth-container {
        max-width: 100%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.6s ease-out;
}
