﻿/* SOFTREN PRO - SISTEMA DE AUTENTICACIÓN DINÁMICO */
:root {
    --emerald: #10b981;
    --navy-dark: #020617;
}

/* 1. ANIMACIONES AVANZADAS */
@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-100px) rotate(20deg);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.floating-icon {
    position: absolute;
    animation: floating 10s infinite linear;
    z-index: 0;
}

/* 2. DISEÑO DE CRISTAL */
.glass-box {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2.5rem;
    transition: transform 0.1s ease-out; /* Para paralaje con JS */
}

/* 3. INPUTS Y BOTONES */
.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 14px 18px;
    color: white;
    font-size: 0.85rem;
    transition: all 0.3s;
    outline: none;
}

    .auth-input:focus {
        border-color: var(--emerald);
        background: rgba(16, 185, 129, 0.05);
    }

.shimmer-effect {
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

.auth-btn-primary {
    width: 100%;
    color: #020617;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 18px;
    border-radius: 1.25rem;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .auth-btn-primary:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
    }

/* 4. SECCIÓN DE TIPS */
#tip-container {
    min-height: 100px;
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--emerald);
    padding: 20px;
    border-radius: 0 20px 20px 0;
}

#tip-text {
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: block;
    font-size: 0.85rem;
}

/* 5. FONDO */
.circle-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--emerald);
    filter: blur(130px);
    opacity: 0.1;
    top: -200px;
    left: -200px;
    border-radius: 50%;
}

.circle-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: #3b82f6;
    filter: blur(130px);
    opacity: 0.1;
    bottom: -150px;
    right: -150px;
    border-radius: 50%;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 1.5rem;
}

/* Añadir estos estilos a tu auth.css actual */

.benefit-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .benefit-card:hover {
        background: rgba(16, 185, 129, 0.05);
        transform: translateY(-10px);
        border-color: var(--emerald);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .benefit-card i {
        transition: transform 0.3s ease;
    }

    .benefit-card:hover i {
        transform: scale(1.2) rotate(5deg);
    }

/* Efecto de pulso suave para el plan recomendado */
.shadow-emerald-glow {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

/* Scroll personalizado para el registro en móviles */
#register-section {
    max-height: 90vh;
    overflow-y: auto;
    padding-right: 10px;
}

    #register-section::-webkit-scrollbar {
        width: 4px;
    }

    #register-section::-webkit-scrollbar-thumb {
        background: var(--emerald);
        border-radius: 10px;
    }

/* Estado de carga del botón */
.btn-loading {
    opacity: 0.8;
    cursor: wait !important;
    pointer-events: none;
    filter: grayscale(0.2);
    transform: scale(0.98) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1) !important;
}

/* Mejora del efecto Shimmer para que sea más sutil en carga */
.shimmer-effect {
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

/* Animación de entrada de los formularios al cambiar */
.auth-section {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
