/* 
 * 🔐 LOGIN & AUTH NETFLIX PREMIUM - CSS
 * Páginas de autenticação (login, registro, recuperação de senha)
 * Gradient: #667eea → #764ba2
 */

/* ============================================
   🎬 AUTH CONTAINER
   ============================================ */
.auth-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
}

/* ============================================
   🎨 AUTH HERO (Lado Esquerdo)
   ============================================ */
.auth-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

.auth-hero-content {
    position: relative;
    z-index: 1;
}

.auth-hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.auth-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-hero-text {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.auth-hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.auth-hero-feature i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   📝 AUTH FORM (Lado Direito)
   ============================================ */
.auth-form-container {
    padding: 3rem 2.5rem;
}

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

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.auth-form-subtitle {
    color: #718096;
    font-size: 0.95rem;
}

.auth-alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #dc2626;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

.auth-alert-info {
    background: #dbeafe;
    color: #1e3a8a;
    border-left-color: #3b82f6;
}

/* ============================================
   📋 FORM FIELDS
   ============================================ */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #9ca3af;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

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

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input-password-wrapper {
    position: relative;
}

.auth-input-password {
    padding-right: 3.5rem;
}

.auth-input-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.auth-input-toggle:hover {
    color: #667eea;
}

/* ============================================
   ✅ CHECKBOX & OPTIONS
   ============================================ */
.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
}

.auth-checkbox:checked {
    accent-color: #667eea;
}

.auth-checkbox-label {
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
}

/* ============================================
   🔘 BUTTONS
   ============================================ */
.auth-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-google {
    background: white;
    color: #4a5568;
    border: 2px solid #e5e7eb;
    margin-top: 1rem;
}

.auth-btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.auth-btn-google img {
    width: 20px;
    height: 20px;
}

/* ============================================
   📱 DIVIDER
   ============================================ */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider::before {
    margin-right: 1rem;
}

.auth-divider::after {
    margin-left: 1rem;
}

/* ============================================
   💬 FOOTER TEXT
   ============================================ */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

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

.auth-footer-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ============================================
   🔄 PASSWORD RESET SPECIFIC
   ============================================ */
.password-reset-card {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 3rem 2.5rem;
}

.password-reset-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.password-reset-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 0.75rem;
}

.password-reset-text {
    color: #718096;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ============================================
   📱 RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .auth-card {
        grid-template-columns: 1fr;
    }
    
    .auth-hero {
        padding: 2rem 1.5rem;
    }
    
    .auth-hero-title {
        font-size: 1.75rem;
    }
    
    .auth-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-hero {
        padding: 1.5rem 1.25rem;
    }
    
    .auth-hero-icon {
        font-size: 3rem;
    }
    
    .auth-hero-title {
        font-size: 1.5rem;
    }
    
    .auth-form-container {
        padding: 1.5rem 1.25rem;
    }
    
    .auth-form-title {
        font-size: 1.5rem;
    }
    
    .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .password-reset-card {
        padding: 2rem 1.5rem;
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease;
}

/* Loading state */
.auth-btn-loading {
    position: relative;
    color: transparent;
}

.auth-btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
