/* =========================================================
   LOGIN GPC - ESTILO MODERNO TECNOLOGÍA Y SEGURIDAD ver2.0.0
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-oscuro: #06111f;
    --azul-fondo: #0a2035;
    --azul-medio: #123b60;
    --azul: #5277f1;
    --azul-claro: #6f8fff;
    --blanco: #ffffff;
    --gris: #aeb9c8;
    --gris-input: #172b40;
    --rojo: #ff6b6b;
    --verde: #4ade80;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Nunito", Arial, sans-serif;

    background:
        radial-gradient(circle at 20% 20%, rgba(82, 119, 241, 0.15), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(82, 119, 241, 0.10), transparent 30%),
        linear-gradient(135deg, #06111f 0%, #0a2035 55%, #06111f 100%);

    color: var(--blanco);
    padding: 25px;

    overflow-x: hidden;
}


/* =========================================================
   DECORACIÓN DEL FONDO
   ========================================================= */

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 350px;
    height: 350px;
    top: -180px;
    right: -120px;
    border: 1px solid rgba(82, 119, 241, 0.20);
    box-shadow:
        0 0 0 40px rgba(82, 119, 241, 0.03),
        0 0 0 80px rgba(82, 119, 241, 0.02);
}

body::after {
    width: 250px;
    height: 250px;
    bottom: -140px;
    left: -100px;
    border: 1px solid rgba(82, 119, 241, 0.15);
}


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.contenedor {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 440px;

    background: #0d2237;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 22px;

    padding: 42px 40px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(82, 119, 241, 0.04);

    overflow: hidden;
}


/* Línea superior decorativa */

.contenedor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 3px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--azul),
        var(--azul-claro),
        transparent
    );

    border-radius: 0 0 10px 10px;
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

.formulario {
    display: none;
    width: 100%;
}

.formulario.active {
    display: block;
    animation: aparecer 0.35s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   TÍTULOS
   ========================================================= */

.formulario h2 {
    text-align: center;

    font-size: 28px;
    font-weight: 700;

    margin-bottom: 30px;

    color: var(--blanco);

    letter-spacing: 0.2px;
}

.formulario h2::after {
    content: "";
    display: block;

    width: 45px;
    height: 3px;

    margin: 12px auto 0;

    background: var(--azul);

    border-radius: 10px;
}


/* =========================================================
   ETIQUETAS
   ========================================================= */

.formulario label {
    display: block;

    margin: 16px 0 7px;

    color: #d7e0eb;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   INPUTS
   ========================================================= */

.formulario input {
    width: 100%;

    height: 48px;

    padding: 0 15px;

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.09);

    background: var(--gris-input);

    color: var(--blanco);

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.formulario input::placeholder {
    color: #7e8ea1;
}

.formulario input:hover {
    border-color: rgba(82, 119, 241, 0.35);
}

.formulario input:focus {
    border-color: var(--azul);

    background: #1a3047;

    box-shadow:
        0 0 0 3px rgba(82, 119, 241, 0.12);
}


/* =========================================================
   BOTÓN
   ========================================================= */

.formulario button {
    width: 100%;

    height: 50px;

    margin-top: 27px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #5277f1,
        #4567d8
    );

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(82, 119, 241, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.formulario button:hover {
    transform: translateY(-2px);

    background: linear-gradient(
        135deg,
        #6386f5,
        #5277f1
    );

    box-shadow:
        0 12px 25px rgba(82, 119, 241, 0.30);
}

.formulario button:active {
    transform: translateY(0);
}


/* =========================================================
   ENLACES
   ========================================================= */

.cambiar-formulario {
    margin-top: 22px;

    text-align: center;

    color: var(--gris);

    font-size: 14px;

    line-height: 1.6;
}

.cambiar-formulario a {
    color: #7896ff;

    text-decoration: none;

    font-weight: 700;

    transition: color 0.2s ease;
}

.cambiar-formulario a:hover {
    color: #a0b5ff;

    text-decoration: underline;
}


/* =========================================================
   MENSAJES PHP
   ========================================================= */

.formulario p[style*="color:red"] {
    background: rgba(255, 107, 107, 0.08);

    border: 1px solid rgba(255, 107, 107, 0.20);

    color: #ff8585 !important;

    padding: 11px 13px;

    border-radius: 8px;

    margin-bottom: 15px;

    font-size: 13px;

    text-align: center;
}

.formulario p[style*="color:green"] {
    background: rgba(74, 222, 128, 0.08);

    border: 1px solid rgba(74, 222, 128, 0.20);

    color: #6ee79a !important;

    padding: 11px 13px;

    border-radius: 8px;

    margin-bottom: 15px;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   REGISTRO - CUANDO HAY MUCHOS CAMPOS
   ========================================================= */

.registro-form {
    max-height: 85vh;
    overflow-y: auto;

    padding-right: 5px;
}

/* Scroll elegante */

.registro-form::-webkit-scrollbar {
    width: 5px;
}

.registro-form::-webkit-scrollbar-track {
    background: transparent;
}

.registro-form::-webkit-scrollbar-thumb {
    background: #315173;
    border-radius: 10px;
}

.registro-form::-webkit-scrollbar-thumb:hover {
    background: var(--azul);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

    body {
        padding: 15px;
    }

    .contenedor {
        max-width: 100%;

        padding: 32px 25px;

        border-radius: 18px;
    }

    .formulario h2 {
        font-size: 25px;

        margin-bottom: 25px;
    }

    .formulario input {
        height: 47px;
    }

    .formulario button {
        height: 48px;
    }
}


@media (max-width: 380px) {

    .contenedor {
        padding: 28px 20px;
    }

    .formulario h2 {
        font-size: 23px;
    }

    .cambiar-formulario {
        font-size: 13px;
    }
}
```
