/* FUENTE MONTSERRAT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* COLORES */
:root {
    --azul: #57afe2;
    --negro: #1d1d1b;
    --gris: #575756;
    --blanco: #ffffff;
    --fondo: #f2f6f9;
    --borde: rgba(87, 87, 86, 0.35);
}

/* BODY */
body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    color: var(--negro);
    background: var(--fondo);
}

/* CONTENEDOR */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

/* LADO IZQUIERDO */
.left-panel {
    width: 67%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 70px;
    overflow: hidden;

    background-image: url('../imagen/fondo_inicio.png');
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: var(--azul);
}

/* OVERLAY */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

/* CONTENIDO */
.content {
    position: relative;
    z-index: 2;
    color: var(--blanco);
    max-width: 580px;
    margin-left: 0;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--blanco);
}

/* LOGO IMAGEN */
.logo-img {
    width: 380px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* LOGO ICONO */
.logo-icon {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    background: var(--blanco);
    color: var(--azul);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 900;
}

/* LOGO TEXTO */
.logo-text h1 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    color: var(--blanco);
}

.logo-text span {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 900;
    color: var(--blanco);
}

/* LINEA */
.line {
    width: 92px;
    height: 6px;
    background: var(--blanco);
    margin: 42px 0;
    border-radius: 10px;
}

/* PARRAFO */
.content p {
    max-width: 430px;
    font-size: 22px;
    line-height: 1.55;
    font-weight: 600;
    color: var(--blanco);
}

/* ICONOS */
.icons {
    display: flex;
    gap: 18px;
    margin-top: 46px;
}

/* ICON BOX */
.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-size: 26px;
    backdrop-filter: blur(5px);
}

/* LADO DERECHO */
.right-panel {
    width: 33%;
    min-height: 100vh;
    background: var(--fondo);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 48px 55px 20px;
}

/* TARJETA LOGIN */
.login-card {
    width: 100%;
    max-width: 470px;
    padding: 46px 42px;
    border-radius: 14px;
    background: var(--blanco);
    border: 1px solid rgba(87, 87, 86, 0.18);
    box-shadow: 0 24px 60px rgba(29, 29, 27, 0.18);
}

/* LOGO SUPERIOR */
.top-logo {
    width: 82px;
    height: 82px;
    margin: 0 auto 28px;
    border-radius: 10px;
    background: var(--azul);
    color: var(--negro);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 38px;
    font-weight: 900;
}

.top-logo img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.top-logo span {
    display: none;
    font-size: 38px;
    font-weight: 900;
}

/* TITULO */
.login-card h2 {
    text-align: center;
    font-size: 31px;
    font-weight: 900;
    color: var(--negro);
}

/* SUBTITULO */
.subtitle {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 34px;
    color: var(--gris);
    font-size: 15px;
    font-weight: 500;
}

/* LABELS */
form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--negro);
}

/* INPUTS */
.input-box {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--borde);
    background: var(--blanco);
}

.input-box:focus-within {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(87, 175, 226, 0.22);
}

.input-box i {
    color: var(--gris);
    font-size: 16px;
}

.input-box input {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--negro);
}

.input-box input::placeholder {
    color: var(--gris);
}

/* OJO PASSWORD */
#togglePassword {
    cursor: pointer;
}

/* OPCIONES */
.options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 28px;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--gris);
    font-weight: 500;
}

.options a {
    color: var(--azul);
    text-decoration: none;
    font-weight: 800;
}

/* BOTONES */
.login-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 8px;
    background: var(--azul);
    color: var(--negro);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.25s ease;
}

.login-btn:hover {
    background: var(--negro);
    color: var(--blanco);
}

.login-btn:nth-of-type(2) {
    background: var(--gris);
    color: var(--blanco);
}

.login-btn:nth-of-type(2):hover {
    background: var(--negro);
}

/* DIVISOR */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0;
    color: var(--gris);
    font-size: 13px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(87, 87, 86, 0.35);
}

/* BOTON INSTITUCIONAL */
.institutional-btn {
    width: 100%;
    height: 56px;
    border-radius: 8px;
    border: 1px solid var(--gris);
    background: var(--blanco);
    color: var(--negro);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.25s ease;
}

.institutional-btn:hover {
    background: var(--negro);
    color: var(--blanco);
    border-color: var(--negro);
}

/* FOOTER */
.footer {
    margin-top: 26px;
    text-align: center;
    font-size: 13px;
    color: var(--gris);
    font-weight: 500;
}

.footer a {
    color: var(--azul);
    text-decoration: none;
    font-weight: 800;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .container {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        min-height: auto;
    }

    .left-panel {
        min-height: 620px;
        padding: 45px 25px;
        background-size: cover;
        background-position: center;
    }

    .right-panel {
        padding: 35px 20px;
    }

    .logo-img {
        width: 320px;
    }
}

@media (max-width: 480px) {
    .left-panel {
        min-height: 560px;
    }

    .login-card {
        padding: 30px 22px;
    }

    .logo-img {
        width: 260px;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 34px;
    }

    .logo {
        gap: 14px;
    }

    .logo-text h1 {
        font-size: 26px;
    }

    .logo-text span {
        font-size: 13px;
    }

    .content p {
        font-size: 17px;
    }

    .icons {
        gap: 12px;
        margin-top: 35px;
    }

    .icon-box {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
    }
}