/* Modern Login Styles - Based on Cart Design */

/* Переопределяем прозрачный текст из hero-page.css */
.login-wrapper .hero-title,
.hero-section .hero-title {
    -webkit-text-fill-color: white !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    background: none !important;
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 40px 0;
    margin-bottom: 30px;
}

.hero-title {
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    opacity: 1 !important;
    filter: none !important;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-align: center;
    margin: 0;
}

/* Login Content Wrapper */
.login-wrapper {
    margin-bottom: 60px;
}

/* Login Detail Block */
.login-detail-block {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

/* Login Section */
.login-section {
    background: white;
    padding: 32px;
}

.login-section-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 8px;
    text-align: center;
}

.login-section-desc {
    color: #64748b;
    text-align: center;
    margin-bottom: 32px;
    font-size: 1rem;
}

/* Form Styles */
.form-label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: rgba(248, 250, 252, 0.5);
    height: auto;
}

.form-control:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Order Button (Login Button) */
.order-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    min-width: 200px;
}

.order-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.3);
}

.order-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Auth Links */
.auth-links {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.auth-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
    color: #16a34a;
    border-left: 4px solid #22c55e;
}

.alert-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #6366f1;
    border-left: 4px solid #8b5cf6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .login-section {
        padding: 24px 20px;
    }
    
    .login-section-title {
        font-size: 1.2rem;
    }
    
    .order-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .login-detail-block {
        margin: 0 16px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0;
        margin-bottom: 20px;
    }
    
    .login-section {
        padding: 20px 16px;
    }
    
    .form-control {
        padding: 10px 14px;
    }
    
    .login-wrapper {
        margin-bottom: 40px;
    }
}

/* Focus and Accessibility */
.form-control:focus,
.order-btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Animation for smooth transitions */
.login-detail-block {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}