:root {
    --primary-bg: #2e1065;
    --secondary-bg: #0f0529;
    --accent-green: #00ff9d;
    /* Vivid Emerald/Neon Green */
    --accent-green-dark: #00cc7d;
    --text-white: #ffffff;
    --glass-bg: rgba(88, 28, 135, 0.25);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    /* Múltiples fuentes de luz: Violeta eléctrico principal + Foco Verde Neón secundario */
    background-color: #2e026d;
    /* Base violeta oscuro */
    background-image:
        radial-gradient(circle at 20% 40%, #9d00ff 0%, transparent 60%),
        /* Foco Violeta */
        radial-gradient(circle at 80% 80%, #00ff9d 0%, transparent 50%);
    /* Toque Verde Intenso */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    overflow: hidden;
    position: relative;
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        background-size: 100% 100%;
    }

    100% {
        background-size: 120% 120%;
    }
}

/* Particles with Green Touches */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 15s infinite linear;
}

/* Mixing white and green particles */
.particle:nth-child(odd) {
    background: #fff;
    box-shadow: 0 0 10px #fff;
}

.particle:nth-child(even) {
    background: #00ff9d;
    box-shadow: 0 0 10px #00ff9d;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    width: 7px;
    height: 7px;
    top: 70%;
    left: 80%;
    animation-duration: 25s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 40%;
    animation-duration: 18s;
}

.particle:nth-child(4) {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 20%;
    animation-duration: 22s;
}

.particle:nth-child(5) {
    width: 5px;
    height: 5px;
    top: 10%;
    left: 90%;
    animation-duration: 30s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    max-width: 1100px;
    justify-content: center;
    align-items: center;
    gap: 120px;
    padding: 20px;
}

/* ----- LEFT SIDE: BRANDING ----- */
.brand-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 450px;
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.lock-icon-box {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lock-icon-box i {
    font-size: 28px;
    color: #fff;
}

.brand-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 4rem;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.brand-underline {
    width: 100px;
    height: 4px;
    background-color: var(--accent-green);
    /* Green Accent */
    margin-bottom: 25px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

.brand-desc {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    font-weight: 300;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    /* Slightly more opaque */
    border: 1px solid rgba(0, 255, 157, 0.2);
    /* Green tint border */
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-green);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 255, 157, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
    }
}

/* ----- RIGHT SIDE: CARD ----- */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 45px;
    width: 420px;
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    animation:
        slideInRight 1s ease-out 0.3s forwards,
        floatCard 6s ease-in-out infinite;
}

.register-card {
    width: 500px !important; /* Wider for Register */
}

@keyframes slideInRight {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card-header {
    margin-bottom: 35px;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.15);
    /* Translucent light field */
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Focus: Glow Green */
.input-field:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-green);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.2);
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 42px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.password-toggle-icon:hover {
    color: #fff;
}

.form-options {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-custom {
    accent-color: var(--accent-green);
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.label-custom {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-green);
    color: #0f172a;
    /* Dark text for contrast */
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-style: italic;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.login-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

/* Hover: Glow & Scale */
.login-btn:hover {
    background: #22c55e;
    /* Slightly darker/richer green on hover */
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.6);
}

.login-btn:hover i {
    transform: translateX(5px);
}

.security-level {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 900px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        /* Enable scrolling on smaller screens */
        padding: 40px 20px;
    }

    .container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding-top: 0;
        height: auto;
    }

    .brand-section {
        align-items: center;
        animation: slideInDown 1s ease-out forwards;
        max-width: 100%;
    }

    @keyframes slideInDown {
        0% {
            transform: translateY(-30px);
            opacity: 0;
        }

        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .login-card {
        width: 100%;
        max-width: 450px;
        padding: 30px;
    }
    
    .register-card {
        max-width: 500px;
    }

    .brand-logo {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .status-badge {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        font-size: 2.5rem;
    }

    .login-card {
        padding: 25px;
    }

    .brand-desc {
        font-size: 0.95rem;
    }

    .card-title {
        font-size: 1.5rem;
    }
}
