/* login-style.css - Edición "Frosted Glass Impeccable" v4.6
 * Propósito: Glassmorphism de alta gama con textura líquida suavizada.
 */

:root {
    --c-green-wow: #85b21f;
    --c-fondesa-blue: #061536;
    --wow-gradient: linear-gradient(135deg, #c70d47 0%, #e62143 100%);
    /* Borde de cristal ultra fino */
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-reflection: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.05) 100%);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #040d21;
    /* MESH GRADIENT SUAVIZADO: Transiciones más largas y etéreas */
    background-image: 
        radial-gradient(at 0% 0%, rgba(26, 66, 138, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(133, 178, 31, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 45, 105, 0.4) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(199, 13, 71, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    overflow: hidden;
    position: relative;
}

/* TEXTURA DE GRANO: Suavizada para no competir con el cristal */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03; /* Reducción de ruido para mayor limpieza visual */
    pointer-events: none;
    z-index: 1;
}

/* ORBE LÍQUIDO LATENTE */
body::after {
    content: "";
    position: absolute;
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(133, 178, 31, 0.04) 0%, transparent 60%);
    animation: moveMesh 25s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes moveMesh {
    0% { transform: translate(-10%, -10%); }
    100% { transform: translate(10%, 10%); }
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 380px;
    opacity: 0;
    transform: translateY(15px);
    animation: slideIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}

/* TARJETA GLASSMORPHISM "IMPECCABLE GLASS" */
.glass-card {
    /* Fondo con gradiente de reflejo interno */
    background: var(--glass-reflection), rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(35px) saturate(150%); /* Aumento de blur y saturación para el vidrio */
    -webkit-backdrop-filter: blur(35px) saturate(150%);
    
    border-radius: 24px;
    padding: 35px;
    
    /* Borde de diamante perimetral con mayor brillo superior */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(255, 255, 255, 0.02); /* Brillo interno de profundidad */
    
    color: white;
    text-align: center;
}

.brand-logo {
    max-width: 140px;
    margin-bottom: 25px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4));
}

/* INPUTS ESTILO "MINIMAL GLASS" */
.form-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-align: left;
    display: block;
    margin-bottom: 6px;
}

.form-control {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--c-green-wow) !important;
    box-shadow: 0 0 15px rgba(133, 178, 31, 0.1) !important;
}

/* BOTÓN WOW PULIDO */
.btn-login {
    background: var(--wow-gradient) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px !important;
    font-weight: 800 !important;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem !important;
    box-shadow: 0 10px 20px rgba(199, 13, 71, 0.3) !important;
    margin-top: 15px;
}

.btn-login:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.15);
    box-shadow: 0 15px 30px rgba(199, 13, 71, 0.5) !important;
}

/* FIRMA PALAMON DIGITAL (ESTILO ETÉREO) */
.palamon-credit {
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 35px;
    display: block;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.4s ease;
}

.palamon-credit:hover {
    color: var(--c-green-wow);
    opacity: 0.8;
}