/* BIOINTE - LOGIN CSS MEJORADO ESTILO DUOLINGO */
/* Archivo: /css/login-enhanced.css */
/* Agregar DESPUÉS de auth.css en login.html */

/* Override: Hacer el contenedor full-width en desktop */
@media (min-width: 1024px) {
    .auth-container {
        max-width: 100% !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        min-height: 100vh;
    }
    
    .auth-form-side {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px !important;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Fondo animado mejorado */
.auth-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 20%, #667eea 40%, #764ba2 60%, #667eea 80%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Formas flotantes más visibles */
.gradient-orb {
    filter: blur(80px);
    opacity: 0.4 !important;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #FF6B35, transparent);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00D9A3, transparent);
    top: 30%;
    right: -250px;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #8B5CF6, transparent);
    bottom: -175px;
    left: 40%;
}

/* Tipografía Duolingo */
.auth-title {
    font-weight: 900 !important;
    font-size: 32px !important;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-weight: 700 !important;
}

/* Logo más grande y con bounce */
.auth-logo .logo svg {
    width: 60px !important;
    height: 60px !important;
    animation: logoBounce 2s infinite ease-in-out;
}

@keyframes logoBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-logo .brand-name {
    font-size: 28px !important;
    font-weight: 900 !important;
}

/* Inputs estilo Duolingo */
.form-input {
    padding: 16px 18px !important;
    border: 3px solid #E5E7EB !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.form-input:focus {
    border-color: #FF6B35 !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1), 0 4px 0 rgba(255, 107, 53, 0.2) !important;
    transform: translateY(-2px) scale(1.01) !important;
}

/* Labels más bold */
.form-label {
    font-weight: 800 !important;
    font-size: 15px !important;
    color: #1F2937 !important;
}

/* Botón principal estilo Duolingo */
.btn-primary {
    padding: 18px 24px !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #FF6B35, #00D9A3) !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s !important;
    border: none !important;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15), 0 8px 20px rgba(255, 107, 53, 0.4) !important;
}

.btn-primary:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15) !important;
}

/* Botones sociales más destacados */
.btn-social {
    padding: 14px 20px !important;
    border: 3px solid #E5E7EB !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s !important;
}

.btn-social:hover {
    transform: translateY(-2px) !important;
    border-color: #FF6B35 !important;
    box-shadow: 0 4px 0 rgba(255, 107, 53, 0.2) !important;
}

/* Card del formulario */
.auth-form-side {
    background: white !important;
    border-radius: 32px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

/* Alert de error con shake */
.alert-error {
    animation: shake 0.5s !important;
    border: 3px solid #EF4444 !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

/* Checkbox más grande */
input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    border: 3px solid #E5E7EB !important;
    border-radius: 6px !important;
}

/* Links más visibles */
.form-link,
.auth-link {
    font-weight: 800 !important;
    color: #FF6B35 !important;
    transition: all 0.2s !important;
}

.form-link:hover,
.auth-link:hover {
    color: #00D9A3 !important;
    text-decoration: underline !important;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 32px 0 !important;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 2px;
    background: #E5E7EB;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: white;
    padding: 0 16px;
    font-weight: 700 !important;
    font-size: 14px;
    color: #6B7280;
}

/* Animación de entrada */
.auth-form-side {
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Success state para botón */
.btn-primary.success {
    animation: successPulse 0.5s;
    background: linear-gradient(135deg, #10B981, #059669) !important;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive ajustado */
@media (max-width: 1023px) {
    .auth-container {
        display: block !important;
    }
    
    .auth-form-side {
        max-width: 500px;
        margin: 40px auto !important;
    }
}

@media (max-width: 640px) {
    .auth-form-side {
        padding: 32px 24px !important;
        border-radius: 24px !important;
    }
    
    .auth-title {
        font-size: 26px !important;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}
