/* =========================================================
   AULA VIRTUAL EMPRENDER EDUCATIVO
   LOGIN - DISEÑO RESPONSIVE
   ========================================================= */

:root {
    --azul-oscuro: #071b2c;
    --azul: #0b3554;
    --azul-claro: #12608a;
    --verde: #24b47e;
    --verde-claro: #36d39a;

    --blanco: #ffffff;
    --gris: #a8b5c1;
    --gris-claro: #e8eef2;

    --fondo: #061521;
    --card: rgba(255, 255, 255, 0.97);

    --sombra:
        0 25px 70px rgba(0, 0, 0, 0.40);
}


/* =========================================================
   REINICIO
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background: var(--fondo);

    color: var(--blanco);

    overflow-x: hidden;
}


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.login-page {
    position: relative;

    min-height: 100vh;

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 40px 20px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(18, 96, 138, 0.30),
            transparent 30%
        ),

        radial-gradient(
            circle at 85% 80%,
            rgba(36, 180, 126, 0.15),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #04111c 0%,
            #08253a 50%,
            #061521 100%
        );
}


/* =========================================================
   EFECTOS DE FONDO
   ========================================================= */

.login-background {
    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


.network {
    position: absolute;

    border-radius: 50%;

    filter: blur(1px);

    opacity: 0.35;

    border: 1px solid rgba(255, 255, 255, 0.08);
}


.network-one {
    width: 600px;
    height: 600px;

    top: -300px;
    left: -200px;

    box-shadow:
        0 0 0 80px rgba(18, 96, 138, 0.04),
        0 0 0 160px rgba(18, 96, 138, 0.03),
        0 0 0 240px rgba(18, 96, 138, 0.02);
}


.network-two {
    width: 500px;
    height: 500px;

    right: -250px;
    bottom: -250px;

    box-shadow:
        0 0 0 70px rgba(36, 180, 126, 0.04),
        0 0 0 140px rgba(36, 180, 126, 0.03),
        0 0 0 210px rgba(36, 180, 126, 0.02);
}


.network-three {
    width: 180px;
    height: 180px;

    top: 15%;
    right: 12%;

    border-color:
        rgba(36, 180, 126, 0.15);
}


/* =========================================================
   CONTENEDOR LOGIN
   ========================================================= */

.login-container {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 480px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* =========================================================
   MARCA
   ========================================================= */

.brand {
    text-align: center;

    margin-bottom: 24px;
}


.brand-logo {
    width: 78px;
    height: 78px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 255, 255, 0.14);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.25);

    overflow: hidden;
}


.brand-logo img {
    width: 72%;
    height: 72%;

    object-fit: contain;
}


.brand h1 {
    font-size: 25px;

    font-weight: 700;

    letter-spacing: 3px;

    color: var(--blanco);
}


.brand p {
    margin-top: 5px;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 4px;

    color: var(--verde-claro);
}


.brand-line {
    display: block;

    width: 55px;
    height: 3px;

    margin: 13px auto;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--azul-claro),
            var(--verde)
        );
}


.brand small {
    color: #b6c5d0;

    font-size: 12px;
}


/* =========================================================
   TARJETA
   ========================================================= */

.login-card {
    width: 100%;

    padding: 38px;

    border-radius: 24px;

    background: var(--card);

    box-shadow: var(--sombra);

    color: #102333;
}


.login-header {
    margin-bottom: 28px;
}


.login-header h2 {
    font-size: 28px;

    font-weight: 700;

    color: var(--azul-oscuro);
}


.login-header p {
    margin-top: 7px;

    color: #71808c;

    font-size: 14px;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.form-group {
    margin-bottom: 21px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #263b4a;

    font-size: 13px;

    font-weight: 600;
}


.input-box {
    position: relative;

    display: flex;

    align-items: center;

    width: 100%;
}


.input-icon {
    position: absolute;

    left: 15px;

    z-index: 2;

    color: var(--azul-claro);

    font-size: 17px;

    pointer-events: none;
}


.input-box input {
    width: 100%;

    height: 52px;

    padding:
        0 15px 0 45px;

    border:
        1px solid #d7e0e6;

    border-radius: 12px;

    outline: none;

    background: #f8fafb;

    color: #172b3a;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.input-box input::placeholder {
    color: #9aa8b2;
}


.input-box input:focus {
    background: #ffffff;

    border-color:
        var(--azul-claro);

    box-shadow:
        0 0 0 4px rgba(18, 96, 138, 0.10);
}


/* =========================================================
   BOTÓN CONTRASEÑA
   ========================================================= */

.password-toggle {
    position: absolute;

    right: 12px;

    border: none;

    background: transparent;

    color: var(--azul-claro);

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    padding: 6px;
}


.password-toggle:hover {
    color: var(--verde);
}


/* =========================================================
   OPCIONES
   ========================================================= */

.login-options {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin:
        4px 0 25px;

    font-size: 12px;
}


.remember {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #657783;

    cursor: pointer;
}


.remember input {
    width: 15px;
    height: 15px;

    accent-color:
        var(--azul-claro);
}


.login-options a {
    color:
        var(--azul-claro);

    text-decoration: none;

    font-weight: 600;
}


.login-options a:hover {
    color: var(--verde);
}


/* =========================================================
   BOTÓN PRINCIPAL
   ========================================================= */

.login-button {
    position: relative;

    width: 100%;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #0a3b5e,
            #116a8f
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.login-button::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.12),
            transparent
        );

    transform:
        translateX(-100%);

    transition:
        transform 0.5s ease;
}


.login-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(11, 53, 84, 0.28);
}


.login-button:hover::before {
    transform:
        translateX(100%);
}


.login-button:active {
    transform:
        translateY(0);
}


.arrow {
    font-size: 20px;

    line-height: 1;
}


/* =========================================================
   PIE DE TARJETA
   ========================================================= */

.login-footer {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 25px;
}


.login-footer span {
    height: 1px;

    flex: 1;

    background:
        #e1e7eb;
}


.login-footer p {
    color: #9aa7b0;

    font-size: 10px;

    white-space: nowrap;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* =========================================================
   ENLACE REGRESO
   ========================================================= */

.back-link {
    margin-top: 22px;

    color: #b7c7d1;

    font-size: 12px;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.back-link:hover {
    color:
        var(--verde-claro);
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.copyright {
    margin-top: 14px;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 10px;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 700px) {

    .login-page {
        padding:
            30px 18px;
    }


    .login-container {
        max-width: 450px;
    }


    .login-card {
        padding: 32px 28px;
    }

}


/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 480px) {

    .login-page {
        min-height: 100svh;

        padding:
            24px 15px;
    }


    .brand {
        margin-bottom: 18px;
    }


    .brand-logo {
        width: 65px;
        height: 65px;

        border-radius: 18px;
    }


    .brand h1 {
        font-size: 20px;

        letter-spacing: 2px;
    }


    .brand p {
        font-size: 11px;

        letter-spacing: 3px;
    }


    .brand small {
        font-size: 10px;
    }


    .login-card {
        padding:
            28px 20px;

        border-radius: 20px;
    }


    .login-header h2 {
        font-size: 24px;
    }


    .login-header p {
        font-size: 13px;
    }


    .login-options {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }


    .login-button {
        height: 52px;

        font-size: 12px;
    }


    .login-footer p {
        font-size: 9px;
    }

}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 360px) {

    .login-page {
        padding:
            18px 12px;
    }


    .login-card {
        padding:
            24px 16px;
    }


    .brand h1 {
        font-size: 18px;
    }


    .brand p {
        font-size: 10px;
    }


    .form-group label {
        font-size: 12px;
    }


    .input-box input {
        height: 49px;

        font-size: 13px;
    }

}