/* =====================================================
   SCM EMPIRE - LOGIN
   AZUL + MORADO PREMIUM
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(37, 99, 235, 0.32),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(124, 58, 237, 0.32),
            transparent 38%
        ),
        radial-gradient(
            circle at 70% 10%,
            rgba(79, 70, 229, 0.16),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #07152f 0%,
            #101c46 40%,
            #25124f 72%,
            #120b2d 100%
        );

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* =====================================================
   LUCES DECORATIVAS DEL FONDO
===================================================== */

body::before {
    content: "";

    position: fixed;

    width: 430px;
    height: 430px;

    top: -180px;
    right: -130px;

    border-radius: 50%;

    background: rgba(124, 58, 237, 0.22);

    filter: blur(60px);

    pointer-events: none;
}

body::after {
    content: "";

    position: fixed;

    width: 380px;
    height: 380px;

    bottom: -170px;
    left: -130px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.20);

    filter: blur(60px);

    pointer-events: none;
}


/* =====================================================
   PÁGINA
===================================================== */

.login-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    position: relative;
    z-index: 1;
}


/* =====================================================
   TARJETA
===================================================== */

.login-card {
    position: relative;

    width: 100%;
    max-width: 430px;

    padding: 45px 40px 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.06)
        );

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 24px;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.32),
        0 0 50px rgba(79, 70, 229, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    overflow: hidden;
}


/* =====================================================
   BORDE SUPERIOR AZUL / MORADO
===================================================== */

.login-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 10%;

    width: 80%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #3B82F6,
            #8B5CF6,
            transparent
        );

    box-shadow:
        0 0 18px rgba(124, 58, 237, 0.8);

    z-index: 6;
}


/* =====================================================
   REFLEJO ANIMADO
===================================================== */

.login-card::before {
    content: "";

    position: absolute;

    top: -80%;
    left: -100%;

    width: 35%;
    height: 260%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.02),
            rgba(147, 197, 253, 0.18),
            rgba(255, 255, 255, 0.50),
            rgba(196, 181, 253, 0.20),
            rgba(255, 255, 255, 0.02),
            transparent
        );

    transform: rotate(25deg);

    filter: blur(2px);

    pointer-events: none;

    z-index: 5;

    animation: espejoSCM 5s ease-in-out infinite;
}


@keyframes espejoSCM {

    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        left: 140%;
        opacity: 1;
    }

    65% {
        opacity: 0;
    }

    100% {
        left: 140%;
        opacity: 0;
    }
}


/* =====================================================
   CONTENIDO
===================================================== */

.logo-container,
.login-form,
.login-footer {
    position: relative;
    z-index: 10;
}


/* =====================================================
   LOGO
===================================================== */

.logo-container {
    display: flex;

    justify-content: center;
    align-items: center;

    margin-bottom: 32px;
}

.logo {
    width: 170px;

    max-width: 100%;

    height: auto;

    filter:
        drop-shadow(
            0 8px 18px rgba(0, 0, 0, 0.25)
        );

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.04);

    filter:
        drop-shadow(
            0 10px 22px rgba(124, 58, 237, 0.30)
        );
}


/* =====================================================
   FORMULARIO
===================================================== */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

    color: #DDD6FE;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.8px;
}


/* =====================================================
   INPUTS
===================================================== */

.form-group input {
    width: 100%;

    padding: 15px 16px;

    border:
        1px solid rgba(255, 255, 255, 0.15);

    border-radius: 11px;

    background:
        rgba(7, 15, 40, 0.45);

    color: #FFFFFF;

    font-size: 14px;

    outline: none;

    transition:
        border 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(226, 232, 240, 0.42);
}

.form-group input:focus {
    border-color: #8B5CF6;

    background:
        rgba(15, 23, 55, 0.72);

    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.13),
        0 0 20px rgba(59, 130, 246, 0.08);
}


/* =====================================================
   CONTRASEÑA
===================================================== */

.password-container {
    position: relative;
}

.password-container input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: #C4B5FD;

    cursor: pointer;

    font-size: 18px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.password-toggle:hover {
    color: white;

    transform:
        translateY(-50%)
        scale(1.08);
}


/* =====================================================
   BOTÓN
===================================================== */

.login-button {
    width: 100%;

    margin-top: 10px;

    padding: 15px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #2563EB,
            #4F46E5,
            #7C3AED
        );

    color: white;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.6px;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(79, 70, 229, 0.30);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 32px rgba(124, 58, 237, 0.38);

    filter: brightness(1.08);
}

.login-button:active {
    transform: translateY(0);
}


/* =====================================================
   FOOTER
===================================================== */

.login-footer {
    margin-top: 30px;

    text-align: center;
}

.footer-line {
    display: block;

    width: 65px;
    height: 1px;

    margin: 0 auto 13px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #8B5CF6,
            transparent
        );
}

.login-footer p {
    color:
        rgba(226, 232, 240, 0.58);

    font-size: 11px;

    letter-spacing: 0.4px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 480px) {

    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 35px 25px 26px;

        border-radius: 20px;
    }

    .logo {
        width: 150px;
    }

}