/* ==========================================
   AUTH CSS - Moderno y Atractivo
   Login y Registro con Gradientes
   ========================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0052CC 0%, #00D4FF 50%, #FF6B35 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

/* ===== CARD AUTH ===== */
.auth-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER AUTH ===== */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B35, #FFD700);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: #999;
}

/* ===== FORM AUTH ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.form-group input::placeholder {
    color: #ccc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
    background: #F8FAFC;
}

.form-group input:hover {
    border-color: var(--secondary);
}

/* ===== PASSWORD TOGGLE ===== */
.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 18px;
    transition: all 0.3s;
}

.password-toggle:hover {
    color: var(--secondary);
}

/* ===== CHECKBOX ===== */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.checkbox-group a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ===== BOTÓN SUBMIT ===== */
.btn-submit {
    background: linear-gradient(135deg, var(--secondary), #FF8C42);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.btn-submit:active {
    transform: translateY(-2px);
}

/* ===== DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ccc;
    font-size: 13px;
    margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===== OAUTH BUTTONS ===== */
.oauth-buttons {
    display: flex;
    gap: 12px;
}

.oauth-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.oauth-btn:hover {
    border-color: var(--primary);
    background: #F8FAFC;
    transform: translateY(-2px);
}

/* ===== FOOTER AUTH ===== */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.auth-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ===== ALERTAS ===== */
.auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 13px;
    font-weight: 500;
    border-left: 4px solid;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-alert-error {
    background: #FEE2E2;
    border-color: #DC2626;
    color: #7F1D1D;
}

.auth-alert-success {
    background: #ECFDF5;
    border-color: #10B981;
    color: #065F46;
}

/* ===== CAMPOS REQUERIDOS ===== */
.required {
    color: #DC2626;
    font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-form {
        gap: 1.2rem;
    }
    
    .oauth-buttons {
        flex-direction: column;
    }
}