/* Auth Pages Styles (Login & Register) - Brand Colors */

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    background: var(--gray-50);
}

.login-visual {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1523240798131-1cda3f934048?w=1200&h=800&fit=crop') center/cover;
    opacity: 0.3;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.visual-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
}

/* Brand Logo */
.brand-logo {
    margin-bottom: 3rem;
}

.logo-link {
    text-decoration: none;
    color: white;
}

.site-logo {
    height: 80px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.site-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Login Carousel */
.login-carousel-container {
    margin-bottom: 2rem;
}

.login-carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.login-testimonial {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.login-testimonial.active {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Controls */
.login-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 3;
}

.carousel-control {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carousel-control i {
    font-size: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    text-align: center;
    max-width: 600px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-gold);
}

.author-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Login Form Section */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    color: #666;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Login Form */
.login-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control.error {
    border-color: var(--danger);
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

/* Remember Me & Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.form-check-label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.forgot-password {
    color: var(--secondary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-purple);
}

/* Login Button */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Social Login Separator */
.social-login-separator {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.social-login-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.social-login-separator span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Social Login Buttons */
.social-login-buttons {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #667eea;
    background: #f8f9fa;
    transform: translateY(-2px);
    color: #333;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn.google i {
    color: #db4437;
}

.social-btn.facebook i {
    color: #4267B2;
}

.social-btn.github i {
    color: #333;
}

.social-btn.twitter i {
    color: #1da1f2;
}

/* Sign Up Link */
.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.signup-link p {
    color: #666;
    margin-bottom: 0.5rem;
}

.signup-link a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: var(--secondary-purple);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-visual {
        min-height: 300px;
        flex: none;
    }
    
    .visual-content {
        padding: 1rem;
    }
    
    .site-logo {
        height: 60px;
    }
    
    .site-name {
        font-size: 2rem;
    }
    
    .login-carousel {
        height: 300px;
    }
    
    .testimonial-text {
        font-size: 1.2rem;
        max-width: 500px;
    }
    
    .login-form-section {
        padding: 1.5rem;
    }
    
    .login-form {
        padding: 1.5rem;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .login-visual {
        min-height: 250px;
    }
    
    .visual-content {
        padding: 1rem 0.5rem;
    }
    
    .site-logo {
        height: 50px;
    }
    
    .site-name {
        font-size: 1.8rem;
    }
    
    .login-carousel {
        height: 250px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        max-width: 400px;
    }
    
    .login-form-section {
        padding: 1rem;
    }
    
    .login-form {
        padding: 1rem;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
    
    .form-control {
        padding: 0.8rem 1.2rem;
    }
    
    .login-btn {
        padding: 0.8rem 1.5rem;
    }
}
