/* ASOCIACIÓN 1RO DE JUNIO - LOGIN CSS */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap");

/* ===== VARIABLES ESENCIALES ===== */
:root {
    --primary-red: #e11d48;
    --primary-red-hover: #be123c;
    --primary-red-light: #fb7185;
    --white: #ffffff;
    --gray-light: #cccccc;
    --gradient-main: linear-gradient(
        135deg,
        var(--primary-red) 0%,
        var(--primary-red-hover) 100%
    );
    --gradient-animated: linear-gradient(
        135deg,
        #e11d48 0%,
        #be123c 50%,
        #e11d48 100%
    );
    --glass-dark: rgba(0, 0, 0, 0.8);
    --glass-light: rgba(225, 29, 72, 0.05);
    --glass-border: rgba(225, 29, 72, 0.1);
    --glow-red: 0 0 20px rgba(225, 29, 72, 0.3);
    --shadow-main: 0 8px 32px rgba(0, 0, 0, 0.4);
    --font-body: "Inter", sans-serif;
    --font-heading: "Montserrat", sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ANIMACIONES ===== */
@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(225, 29, 72, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(225, 29, 72, 0.6);
    }
}

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

/* ===== RESET BÁSICO ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 50%, #450a0a 100%);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
.login-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(225, 29, 72, 0.2);
    background: transparent;
    pointer-events: none;
    animation: techFloat 12s linear infinite;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    border-style: dashed;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 8%;
    border-width: 3px;
    animation-delay: 4s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 15%;
    border-color: rgba(239, 68, 68, 0.3);
    animation-delay: 8s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    top: 25%;
    right: 20%;
    border-style: dotted;
    border-color: rgba(225, 29, 72, 0.25);
    animation-delay: 2s;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        /* Circuitos horizontales */
        linear-gradient(0deg, transparent 24%, rgba(225, 29, 72, 0.1) 25%, rgba(225, 29, 72, 0.1) 26%, transparent 27%, transparent 74%, rgba(225, 29, 72, 0.1) 75%, rgba(225, 29, 72, 0.1) 76%, transparent 77%),
        /* Circuitos verticales */
        linear-gradient(90deg, transparent 24%, rgba(225, 29, 72, 0.1) 25%, rgba(225, 29, 72, 0.1) 26%, transparent 27%, transparent 74%, rgba(225, 29, 72, 0.1) 75%, rgba(225, 29, 72, 0.1) 76%, transparent 77%),
        /* Puntos de conexión */
        radial-gradient(circle at 25% 25%, rgba(225, 29, 72, 0.3) 1px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(225, 29, 72, 0.3) 1px, transparent 2px);
    background-size: 100px 100px, 100px 100px, 100px 100px, 100px 100px;
    opacity: 0.6;
    animation: circuitFlow 20s linear infinite;
}

/* Elementos electrónicos flotantes */
.bg-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        /* Chips/microprocesadores */
        linear-gradient(45deg, rgba(225, 29, 72, 0.4) 2px, transparent 2px),
        linear-gradient(-45deg, rgba(225, 29, 72, 0.4) 2px, transparent 2px);
    background-size: 60px 60px, 60px 60px;
    background-position: 0 0, 30px 30px;
    animation: chipGlow 15s ease-in-out infinite;
    opacity: 0.3;
}

/* Líneas de datos */
.bg-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(225, 29, 72, 0.2) 45%, rgba(225, 29, 72, 0.4) 50%, rgba(225, 29, 72, 0.2) 55%, transparent 100%);
    animation: dataFlow 8s linear infinite;
    opacity: 0.5;
}

@keyframes techFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-15px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(5px) rotate(270deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.4;
    }
}

@keyframes circuitFlow {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 100px 100px, 100px 100px, 100px 100px, 100px 100px;
    }
}

@keyframes chipGlow {
    0%, 100% {
        opacity: 0.2;
        filter: brightness(0.8);
    }
    50% {
        opacity: 0.5;
        filter: brightness(1.2) hue-rotate(10deg);
    }
}

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

/* ===== ELEMENTOS ROBÓTICOS ===== */
.tech-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.robot-parts {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Engranajes */
.gear {
    position: absolute;
    border: 3px solid rgba(225, 29, 72, 0.3);
    border-radius: 50%;
    animation: rotateAndMove 30s linear infinite;
}

.gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 2px solid rgba(225, 29, 72, 0.2);
    border-radius: 50%;
}

.gear::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 20%;
    background: rgba(225, 29, 72, 0.4);
    border-radius: 50%;
}

.gear-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    right: 10%;
    animation-duration: 15s;
}

.gear-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 5%;
    animation-duration: 20s;
    animation-direction: reverse;
}

.gear-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 2%;
    animation-duration: 18s;
    animation-delay: 5s;
}

.gear-4 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 25%;
    animation-duration: 22s;
    animation-direction: reverse;
    animation-delay: 8s;
}

/* Placas de circuito */
.circuit-board {
    position: absolute;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(225, 29, 72, 0.1) 32%, 
        transparent 34%,
        transparent 65%, 
        rgba(225, 29, 72, 0.1) 67%, 
        transparent 69%
    );
    border: 1px solid rgba(225, 29, 72, 0.2);
    animation: circuitFloat 20s ease-in-out infinite;
}

.cb-1 {
    width: 100px;
    height: 60px;
    top: 40%;
    right: 15%;
    transform: rotate(15deg);
    animation-duration: 16s;
}

.cb-2 {
    width: 80px;
    height: 50px;
    bottom: 35%;
    left: 12%;
    transform: rotate(-20deg);
    animation-delay: 5s;
    animation-duration: 19s;
}

.cb-3 {
    width: 120px;
    height: 70px;
    top: 10%;
    left: 30%;
    transform: rotate(45deg);
    animation-delay: 10s;
    animation-duration: 14s;
}

.cb-4 {
    width: 90px;
    height: 55px;
    bottom: 15%;
    right: 40%;
    transform: rotate(-35deg);
    animation-delay: 2s;
    animation-duration: 21s;
}

/* Indicadores LED */
.led-indicator {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(225, 29, 72, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
    animation: ledFloat 18s ease-in-out infinite;
}

.led-1 {
    top: 25%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.led-2 {
    top: 65%;
    right: 12%;
    animation-delay: 4s;
    background: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    animation-duration: 14s;
}

.led-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 8s;
    background: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    animation-duration: 16s;
}

.led-4 {
    top: 10%;
    right: 30%;
    animation-delay: 2s;
    background: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    animation-duration: 10s;
}

.led-5 {
    bottom: 10%;
    left: 40%;
    animation-delay: 6s;
    background: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    animation-duration: 18s;
}

.led-6 {
    top: 80%;
    right: 5%;
    animation-delay: 10s;
    background: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
    animation-duration: 13s;
}

/* Ojos de robot */
.robot-eye {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.8) 30%, rgba(225, 29, 72, 0.4) 70%, transparent 100%);
    border-radius: 50%;
    border: 2px solid rgba(225, 29, 72, 0.6);
    animation: robotEyeMove 8s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.5);
}

.robot-eye::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: eyePupil 3s ease-in-out infinite;
}

.re-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.re-2 {
    bottom: 25%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 12s;
}

.re-3 {
    top: 70%;
    left: 45%;
    animation-delay: 6s;
    animation-duration: 14s;
}

/* Streams de datos */
.data-stream {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(225, 29, 72, 0.8) 20%, 
        rgba(225, 29, 72, 0.9) 50%, 
        rgba(225, 29, 72, 0.6) 80%, 
        transparent 100%
    );
    animation: dataStreamFlow 6s linear infinite;
}

.ds-1 {
    top: 10%;
    left: 25%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.ds-2 {
    bottom: 20%;
    right: 35%;
    animation-delay: 2s;
    animation-duration: 7s;
    transform: rotate(45deg);
}

.ds-3 {
    top: 60%;
    left: 60%;
    animation-delay: 4s;
    animation-duration: 6s;
    transform: rotate(-30deg);
}

/* Partículas tecnológicas */
.tech-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(225, 29, 72, 0.8);
    border-radius: 50%;
    animation: particleSwarm 15s linear infinite;
    box-shadow: 
        0 0 5px rgba(225, 29, 72, 0.6),
        0 0 10px rgba(225, 29, 72, 0.4),
        0 0 15px rgba(225, 29, 72, 0.2);
}

.tp-1 {
    top: 5%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.tp-2 {
    bottom: 15%;
    right: 8%;
    animation-delay: 3s;
    animation-duration: 16s;
    background: rgba(34, 197, 94, 0.8);
    box-shadow: 
        0 0 5px rgba(34, 197, 94, 0.6),
        0 0 10px rgba(34, 197, 94, 0.4);
}

.tp-3 {
    top: 45%;
    left: 5%;
    animation-delay: 6s;
    animation-duration: 14s;
    background: rgba(59, 130, 246, 0.8);
    box-shadow: 
        0 0 5px rgba(59, 130, 246, 0.6),
        0 0 10px rgba(59, 130, 246, 0.4);
}

.tp-4 {
    bottom: 40%;
    right: 15%;
    animation-delay: 9s;
    animation-duration: 18s;
    background: rgba(245, 158, 11, 0.8);
    box-shadow: 
        0 0 5px rgba(245, 158, 11, 0.6),
        0 0 10px rgba(245, 158, 11, 0.4);
}

.tp-5 {
    top: 30%;
    left: 80%;
    animation-delay: 12s;
    animation-duration: 10s;
    background: rgba(168, 85, 247, 0.8);
    box-shadow: 
        0 0 5px rgba(168, 85, 247, 0.6),
        0 0 10px rgba(168, 85, 247, 0.4);
}

/* Animaciones robóticas */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateAndMove {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    }
    15% {
        transform: translateX(150px) translateY(-80px) rotate(54deg) scale(1.2);
    }
    30% {
        transform: translateX(-120px) translateY(100px) rotate(108deg) scale(0.8);
    }
    45% {
        transform: translateX(200px) translateY(60px) rotate(162deg) scale(1.1);
    }
    60% {
        transform: translateX(-80px) translateY(-120px) rotate(216deg) scale(0.9);
    }
    75% {
        transform: translateX(100px) translateY(-40px) rotate(270deg) scale(1.3);
    }
    90% {
        transform: translateX(-150px) translateY(80px) rotate(324deg) scale(1.1);
    }
    100% {
        transform: translateX(0) translateY(0) rotate(360deg) scale(1);
    }
}

@keyframes circuitFloat {
    0% {
        transform: translateX(0) translateY(0) rotate(15deg) scale(1);
        opacity: 0.3;
    }
    12% {
        transform: translateX(120px) translateY(-100px) rotate(75deg) scale(1.3);
        opacity: 0.8;
    }
    25% {
        transform: translateX(-150px) translateY(80px) rotate(-25deg) scale(0.7);
        opacity: 0.5;
    }
    38% {
        transform: translateX(180px) translateY(120px) rotate(135deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-100px) translateY(-150px) rotate(-75deg) scale(0.9);
        opacity: 0.4;
    }
    62% {
        transform: translateX(200px) translateY(-60px) rotate(195deg) scale(1.4);
        opacity: 0.7;
    }
    75% {
        transform: translateX(-180px) translateY(150px) rotate(-135deg) scale(0.8);
        opacity: 0.6;
    }
    87% {
        transform: translateX(80px) translateY(-180px) rotate(255deg) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) translateY(0) rotate(15deg) scale(1);
        opacity: 0.3;
    }
}

@keyframes ledFloat {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.3;
    }
    10% {
        transform: translateX(-200px) translateY(150px) scale(2.0);
        opacity: 1;
    }
    20% {
        transform: translateX(250px) translateY(-120px) scale(0.5);
        opacity: 0.7;
    }
    30% {
        transform: translateX(-180px) translateY(-200px) scale(1.8);
        opacity: 0.9;
    }
    40% {
        transform: translateX(300px) translateY(100px) scale(0.6);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-250px) translateY(180px) scale(1.6);
        opacity: 1;
    }
    60% {
        transform: translateX(150px) translateY(-250px) scale(0.8);
        opacity: 0.6;
    }
    70% {
        transform: translateX(-300px) translateY(-80px) scale(1.4);
        opacity: 0.8;
    }
    80% {
        transform: translateX(200px) translateY(220px) scale(0.7);
        opacity: 0.9;
    }
    90% {
        transform: translateX(-100px) translateY(-180px) scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.3;
    }
}

@keyframes circuitPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes ledBlink {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        filter: brightness(1.5);
    }
}

/* Nuevas animaciones para elementos robóticos */
@keyframes robotEyeMove {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        box-shadow: 0 0 15px rgba(225, 29, 72, 0.5);
    }
    20% {
        transform: translateX(180px) translateY(-100px) scale(1.5);
        box-shadow: 0 0 25px rgba(225, 29, 72, 0.8);
    }
    40% {
        transform: translateX(-150px) translateY(120px) scale(0.7);
        box-shadow: 0 0 10px rgba(225, 29, 72, 0.3);
    }
    60% {
        transform: translateX(220px) translateY(80px) scale(1.3);
        box-shadow: 0 0 30px rgba(225, 29, 72, 0.9);
    }
    80% {
        transform: translateX(-200px) translateY(-140px) scale(0.9);
        box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
    }
    100% {
        transform: translateX(0) translateY(0) scale(1);
        box-shadow: 0 0 15px rgba(225, 29, 72, 0.5);
    }
}

@keyframes eyePupil {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    25% {
        transform: translate(-30%, -70%);
    }
    50% {
        transform: translate(-70%, -50%);
    }
    75% {
        transform: translate(-50%, -30%);
    }
}

@keyframes dataStreamFlow {
    0% {
        transform: translateX(0) translateY(-200px) scaleY(0);
        opacity: 0;
    }
    20% {
        transform: translateX(50px) translateY(-100px) scaleY(1);
        opacity: 1;
    }
    40% {
        transform: translateX(-80px) translateY(0) scaleY(1.5);
        opacity: 0.8;
    }
    60% {
        transform: translateX(120px) translateY(100px) scaleY(0.8);
        opacity: 0.6;
    }
    80% {
        transform: translateX(-60px) translateY(180px) scaleY(1.2);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0) translateY(300px) scaleY(0);
        opacity: 0;
    }
}

@keyframes particleSwarm {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.2;
    }
    10% {
        transform: translateX(-300px) translateY(200px) scale(1.8);
        opacity: 1;
    }
    20% {
        transform: translateX(350px) translateY(-150px) scale(0.4);
        opacity: 0.7;
    }
    30% {
        transform: translateX(-250px) translateY(-300px) scale(2.0);
        opacity: 0.9;
    }
    40% {
        transform: translateX(400px) translateY(150px) scale(0.6);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-350px) translateY(250px) scale(1.6);
        opacity: 1;
    }
    60% {
        transform: translateX(200px) translateY(-400px) scale(0.3);
        opacity: 0.6;
    }
    70% {
        transform: translateX(-400px) translateY(-100px) scale(1.4);
        opacity: 0.8;
    }
    80% {
        transform: translateX(300px) translateY(350px) scale(0.8);
        opacity: 0.9;
    }
    90% {
        transform: translateX(-150px) translateY(-250px) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.2;
    }
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.floating-container {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main), 0 0 30px rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.2);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
    position: relative;
    max-width: 900px;
    width: 100%;
}

/* ===== BRANDING IZQUIERDA ===== */
.login-branding {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    color: var(--white);
    overflow: hidden;
}

.branding-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 20% 80%,
            rgba(225, 29, 72, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(190, 18, 60, 0.1) 0%,
            transparent 50%
        );
}

/* ===== CÍRCULOS GRANDES DE REDES SOCIALES ===== */
.floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(225, 29, 72, 0.1) 0%,
        rgba(190, 18, 60, 0.05) 100%
    );
    filter: blur(30px);
    animation: floatSlow 12s ease-in-out infinite;
}

.element-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.element-2 {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.element-3 {
    width: 50px;
    height: 50px;
    top: 60%;
    right: 25%;
    animation-delay: 8s;
}

@keyframes floatSlow {
    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.6;
    }
}

.branding-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.logo-backdrop {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.1), transparent);
    border-radius: 50%;
    filter: blur(20px);
}

.brand-logo {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(225, 29, 72, 0.3));
    position: relative;
    z-index: 2;
}



.brand-line {
    width: 100px;
    height: 3px;
    background: var(--gradient-main);
    margin: 0.5rem auto;
    border-radius: 2px;
}



/* ===== SECCIÓN DE BIENVENIDA ===== */
.welcome-section {
    text-align: center;
    margin: 2rem 0;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.welcome-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* ===== SECCIÓN SOCIAL ===== */
.social-section {
    text-align: center;
}

.social-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-media-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 320px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition);
    min-height: 50px;
    justify-content: flex-start;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-link.tiktok:hover {
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.3);
}

.social-link.facebook:hover {
    border-color: #1877f2;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.social-link.instagram:hover {
    border-color: #e4405f;
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.3);
}

.social-link.whatsapp:hover {
    border-color: #25d366;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: var(--transition);
}

.social-link:hover .social-icon svg {
    transform: scale(1.1);
}

.social-link span {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== FORMULARIO DERECHA ===== */
.login-form-section {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.form-container {
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ===== INPUTS ===== */
.input-group {
    margin-bottom: 0.8rem;
    position: relative;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.1);
}

.form-input.error {
    border-color: var(--red-primary);
    background: rgba(255, 0, 0, 0.05);
}

.input-error {
    color: var(--red-primary);
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: none;
}

.input-error.show {
    display: block;
}

/* ===== CHECKBOX PERSONALIZADO ===== */
.checkbox-label {
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: var(--orange-primary);
    cursor: pointer;
}

.checkbox-custom {
    display: none; /* Usar checkbox nativo para mejor accesibilidad */
}

.checkbox-text {
    font-size: 0.8rem;
}

.forgot-password {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color var(--transition);
}

.forgot-password:hover {
    color: var(--primary-red-hover);
}

/* ===== BOTÓN LOGIN MEJORADO ===== */
.login-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-main);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-text {
    display: inline-block;
}

.button-loader {
    display: none;
}

.login-button.loading .button-text {
    display: none;
}

.login-button.loading .button-loader {
    display: inline-block;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== MENSAJES DE ALERTA ===== */
.alert {
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-message {
    flex: 1;
}

/* ===== OPCIONES FORMULARIO ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}
.input-label {
    display: block;
    color: var(--orange-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FOOTER DEL FORMULARIO ===== */
.form-footer {
    margin-top: 1rem;
}

.register-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.register-text .highlight {
    display: block;
    color: var(--orange-primary);
    font-weight: 600;
    margin-top: 0.3rem;
}

.register-text .highlight a,
.no-account-text .highlight a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.register-text .highlight a:hover,
.no-account-text .highlight a:hover {
    color: var(--primary-red-hover);
}

/* ===== SECCIONES SOCIALES ===== */
.social-media-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all var(--transition);
    min-height: 46px;
    justify-content: flex-start;
}

.social-link:hover {
    background: rgba(255, 102, 0, 0.1);
    border-color: var(--orange-primary);
    color: var(--orange-primary);
    transform: translateY(-1px);
}

.social-icon {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.trading-signals .social-icon {
    color: var(--green-primary);
}
.academy .social-icon {
    color: var(--green-secondary);
}
.community .social-icon {
    color: var(--green-light);
}
.support .social-icon {
    color: var(--green-primary);
}

/* ===== REGISTRO SECTION ===== */
.register-section {
    text-align: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.no-account-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.4;
}

.no-account-text .highlight {
    display: block;
    color: var(--orange-primary);
    font-weight: 600;
    margin-top: 0.3rem;
}

.register-link-main {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.register-link-main:hover {
    color: var(--red-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .login-branding {
        min-height: 300px;
        padding: var(--space-md);
    }

    .brand-text h2 {
        font-size: 1.5rem;
    }

    .brand-logo {
        width: 80px;
    }

    .login-form-section {
        padding: var(--space-md);
    }

    /* Ajustar círculos para móvil */
    .facebook-circle {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }

    .instagram-circle {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .whatsapp-circle {
        width: 90px;
        height: 90px;
        font-size: 1.8rem;
    }

    .tiktok-circle {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .login-form-section {
        padding: 1rem;
    }

    .form-header h3 {
        font-size: 1.2rem;
    }
}
