/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --rojo: #990000;
    --rojo-oscuro: #700000;
    --rojo-profundo: #650000;

    --amarillo: #ffc107;

    --blanco: #ffffff;

    --gris-fondo: #f5f6f8;
    --gris-borde: #dddddd;
    --gris-texto: #777777;

    --negro: #222222;
}


/* =========================================================
   HTML / BODY
========================================================= */

html,
body {

    width: 100%;
    min-height: 100%;

}


body {

    font-family:
        'Inter',
        Arial,
        sans-serif;

    background:
        var(--gris-fondo);

    color:
        var(--negro);

}


/* =========================================================
   PÁGINA
========================================================= */

.login-page {

    width: 100%;
    min-height: 100vh;

    display: flex;

}


/* =========================================================
   PANEL IZQUIERDO
========================================================= */

.brand-panel {

    position: relative;

    width: 50%;
    min-height: 100vh;

    background:
        linear-gradient(
            145deg,
            #850000 0%,
            #990000 50%,
            #650000 100%
        );

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


/* =========================================================
   DECORACIONES
========================================================= */

.brand-decoration {

    position: absolute;

    border-radius: 50%;

    background:
        rgba(255,193,7,.08);

    pointer-events: none;

}


.decoration-one {

    width: 500px;
    height: 500px;

    top: -250px;
    right: -250px;

}


.decoration-two {

    width: 400px;
    height: 400px;

    bottom: -250px;
    left: -250px;

}


/* =========================================================
   CONTENIDO IZQUIERDO
========================================================= */

.brand-content {

    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 600px;

    padding: 40px;

    text-align: center;

}


/* =========================================================
   LOGO
========================================================= */

.logo-container {

    width: 230px;
    height: 230px;

    margin:
        0 auto 30px;

    padding: 18px;

    background:
        #ffffff;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow:
        0 20px 50px rgba(0,0,0,.30);

}


.logo-container img {

    width: 100%;
    height: 100%;

    object-fit: contain;

}


/* =========================================================
   TEXTO INSTITUCIONAL
========================================================= */

.brand-text span {

    display: block;

    color:
        rgba(255,255,255,.85);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 3px;

}


.brand-text h1 {

    color:
        #ffffff;

    font-size: 58px;

    font-weight: 800;

    line-height: 1;

    margin-top: 8px;

}


.brand-line {

    width: 65px;
    height: 4px;

    margin:
        20px auto;

    background:
        var(--amarillo);

    border-radius: 10px;

}


.brand-text p {

    color:
        #ffffff;

    font-size: 21px;

    font-weight: 500;

}


/* =========================================================
   PANEL DERECHO
========================================================= */

.login-panel {

    width: 50%;
    min-height: 100vh;

    background:
        #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

}


/* =========================================================
   CAJA LOGIN
========================================================= */

.login-box {

    width: 100%;

    max-width: 420px;

}


/* =========================================================
   ENCABEZADO
========================================================= */

.login-label {

    display: block;

    color:
        var(--rojo);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 10px;

}


.login-header h2 {

    color:
        var(--negro);

    font-size: 40px;

    font-weight: 800;

    line-height: 1.15;

    margin-bottom: 10px;

}


.login-header p {

    color:
        var(--gris-texto);

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 30px;

}


/* =========================================================
   ERROR
========================================================= */

.error-message {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        12px 14px;

    margin-bottom: 20px;

    background:
        #fff1f1;

    border:
        1px solid #ffd0d0;

    border-radius:
        8px;

    color:
        var(--rojo);

    font-size: 13px;

}


/* =========================================================
   GRUPO
========================================================= */

.input-group {

    width: 100%;

    margin-bottom: 20px;

}


.input-group label {

    display: block;

    color:
        #333333;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 8px;

}


/* =========================================================
   CONTENEDOR INPUT
========================================================= */

.input-container {

    position: relative;

    width: 100%;

}


.input-container > i {

    position: absolute;

    left: 16px;

    top: 50%;

    transform:
        translateY(-50%);

    color:
        #999999;

    pointer-events: none;

    z-index: 2;

}


/* =========================================================
   INPUT
========================================================= */

.input-container input {

    width: 100%;
    height: 54px;

    border:
        1px solid var(--gris-borde);

    border-radius:
        9px;

    background:
        #fafafa;

    padding:
        0 45px;

    color:
        #222222;

    font-family:
        inherit;

    font-size:
        14px;

    outline:
        none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.input-container input::placeholder {

    color:
        #aaaaaa;

}


.input-container input:focus {

    background:
        #ffffff;

    border-color:
        var(--rojo);

    box-shadow:
        0 0 0 3px
        rgba(153,0,0,.08);

}


/* =========================================================
   MOSTRAR CONTRASEÑA
========================================================= */

.password-toggle {

    position: absolute;

    right: 8px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 36px;
    height: 36px;

    border:
        none;

    background:
        transparent;

    color:
        #999999;

    cursor:
        pointer;

    display: flex;

    align-items: center;

    justify-content: center;

}


.password-toggle:hover {

    color:
        var(--rojo);

}


/* =========================================================
   BOTÓN LOGIN
========================================================= */

.login-button {

    width: 100%;
    height: 55px;

    margin-top: 10px;

    border:
        none;

    border-radius:
        9px;

    background:
        var(--rojo);

    color:
        #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    font-family:
        inherit;

    font-size:
        14px;

    font-weight:
        700;

    cursor:
        pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

}


.login-button:hover {

    background:
        var(--rojo-oscuro);

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(153,0,0,.20);

}


.login-button:active {

    transform:
        translateY(0);

}


/* =========================================================
   SEPARADOR
========================================================= */

.separator {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    margin:
        28px 0 18px;

}


.separator span {

    flex: 1;

    height: 1px;

    background:
        #e5e5e5;

}


.separator p {

    color:
        #999999;

    font-size:
        10px;

    white-space:
        nowrap;

}


/* =========================================================
   LINK SITIO WEB
========================================================= */

.website-link {

    width: 100%;

    min-height: 50px;

    padding:
        0 15px;

    border:
        1px solid #dddddd;

    border-radius:
        9px;

    display: flex;

    align-items: center;

    gap: 10px;

    color:
        #555555;

    text-decoration:
        none;

    font-size:
        13px;

    font-weight:
        600;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;

}


.website-link i:first-child {

    color:
        var(--rojo);

}


.website-link:hover {

    border-color:
        var(--rojo);

    background:
        #fffafa;

    color:
        var(--rojo);

}


.external-icon {

    margin-left:
        auto;

    color:
        #999999;

}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {

    text-align:
        center;

    margin-top:
        22px;

    color:
        #aaaaaa;

    font-size:
        10px;

    line-height:
        1.5;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .logo-container {

        width: 190px;
        height: 190px;

    }


    .brand-text h1 {

        font-size: 45px;

    }

}


/* =========================================================
   MÓVILES
========================================================= */

@media (max-width: 700px) {

    .login-page {

        flex-direction: column;

    }


    .brand-panel {

        width: 100%;

        min-height: 330px;
        height: 330px;

    }


    .brand-content {

        padding:
            25px;

    }


    .logo-container {

        width: 140px;
        height: 140px;

        margin-bottom:
            18px;

    }


    .brand-text span {

        font-size: 9px;

        letter-spacing:
            1.5px;

    }


    .brand-text h1 {

        font-size: 35px;

    }


    .brand-text p {

        font-size: 16px;

    }


    .login-panel {

        width: 100%;

        min-height:
            calc(100vh - 330px);

        padding:
            35px 25px;

    }

}


/* =========================================================
   MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 400px) {

    .brand-panel {

        min-height: 290px;
        height: 290px;

    }


    .logo-container {

        width: 115px;
        height: 115px;

    }


    .brand-text h1 {

        font-size: 30px;

    }


    .login-panel {

        min-height:
            calc(100vh - 290px);

        padding:
            30px 20px;

    }


    .login-header h2 {

        font-size: 32px;

    }

}