/* =========================================================
   SIGRI
   Sistema Web para Gestión de Relevamientos Institucionales
   Hospital Zonal General Gobernador Domingo Mercante
   ========================================================= */

:root {
    --sigri-blue: #005b78;
    --sigri-blue-dark: #003f55;
    --sigri-turquoise: #00a9a5;
    --sigri-turquoise-light: #20c9c4;

    --sigri-text: #263238;
    --sigri-border: #d9e1e5;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--sigri-text);
    background: #000000;
}

/* =========================================================
   PANTALLA PRINCIPAL
   ========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 35px 25px;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 50%,
            rgba(0, 169, 165, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 35%,
            rgba(0, 91, 120, 0.12),
            transparent 32%
        ),
        #000000;
}

/* Brillo ambiental */

.login-page::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    left: 15%;
    top: 50%;

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(0, 169, 165, 0.07),
            transparent 65%
        );

    pointer-events: none;
}

/* =========================================================
   CONTENEDOR DEL LOGIN
   Imagen SIGRI + formulario
   ========================================================= */

.login-layout {
    width: 100%;
    max-width: 1080px;

    min-height: 610px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;

    position: relative;
    z-index: 2;

    overflow: hidden;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.78),
        0 0 50px rgba(0, 169, 165, 0.08);

    animation: sigriLoginAppear 0.65s ease-out both;
}

/* =========================================================
   IMAGEN PRINCIPAL
   ========================================================= */

.login-visual {
    min-width: 0;
    min-height: 610px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;

    background: #ffffff;
}

.login-visual img {
    display: block;

    width: 100%;
    height: 100%;

    max-height: 566px;

    object-fit: contain;

    filter:
        drop-shadow(0 10px 24px rgba(0, 0, 0, 0.10));
}

/* =========================================================
   PANEL DE ACCESO
   ========================================================= */

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 55px 48px 42px;

    background: #ffffff;

    border-left: 1px solid #edf0f2;
}

/* =========================================================
   ENCABEZADO DEL FORMULARIO
   ========================================================= */

.login-header {
    text-align: center;

    margin-bottom: 38px;
}

.login-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--sigri-turquoise),
            var(--sigri-blue)
        );

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;

    box-shadow:
        0 8px 20px rgba(0, 169, 165, 0.22);
}

.login-header h1 {
    margin: 0 0 9px;

    color: var(--sigri-blue-dark);

    font-size: 25px;
    font-weight: 700;
}

.login-header p {
    margin: 0;

    color: #718087;

    font-size: 12px;
    line-height: 1.55;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 600;

    color: var(--sigri-blue-dark);
}

.form-group input {
    width: 100%;
    height: 46px;

    padding: 0 13px;

    border: 1px solid var(--sigri-border);
    border-radius: 8px;

    background: #ffffff;

    font-family: inherit;
    font-size: 14px;

    color: var(--sigri-text);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #a1adb2;
}

.form-group input:hover {
    border-color: #b7c8ce;
}

.form-group input:focus {
    border-color: var(--sigri-turquoise);

    box-shadow:
        0 0 0 3px rgba(0, 169, 165, 0.12);
}

/* =========================================================
   CONTRASEÑA
   ========================================================= */

.password-container {
    position: relative;
}

.password-container input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    border: none;

    background: transparent;

    color: #718087;

    cursor: pointer;

    border-radius: 6px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.password-toggle:hover {
    color: var(--sigri-turquoise);

    background:
        rgba(0, 169, 165, 0.08);
}

/* =========================================================
   BOTÓN INGRESAR
   ========================================================= */

.btn-login {
    width: 100%;
    height: 47px;

    margin-top: 8px;

    border: none;
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            var(--sigri-turquoise),
            #00b9b4
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.5px;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(0, 169, 165, 0.25);

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.btn-login:hover {
    background:
        linear-gradient(
            135deg,
            var(--sigri-blue),
            var(--sigri-blue-dark)
        );

    box-shadow:
        0 9px 22px rgba(0, 63, 85, 0.35);

    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(1px);
}

/* =========================================================
   PIE
   ========================================================= */

.login-footer {
    margin-top: 38px;

    padding-top: 18px;

    border-top: 1px solid #edf0f2;

    text-align: center;

    color: #718087;

    font-size: 8px;
    line-height: 1.55;
}

.login-footer .version {
    display: block;

    margin-top: 6px;

    color: #9aa6ab;
}

/* =========================================================
   ANIMACIÓN
   ========================================================= */

@keyframes sigriLoginAppear {
    from {
        opacity: 0;

        transform:
            translateY(18px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .login-layout {
        grid-template-columns: 1fr;

        max-width: 520px;
    }

    .login-visual {
        min-height: auto;

        padding: 20px 25px 5px;
    }

    .login-visual img {
        width: 100%;
        height: auto;
        max-height: 430px;
    }

    .login-panel {
        border-left: none;
        border-top: 1px solid #edf0f2;

        padding: 35px 42px 32px;
    }
}

@media (max-width: 520px) {

    .login-page {
        padding: 18px 12px;
    }

    .login-layout {
        border-radius: 14px;
    }

    .login-visual {
        padding: 15px 18px 0;
    }

    .login-visual img {
        max-height: 350px;
    }

    .login-panel {
        padding: 30px 24px 26px;
    }

    .login-header {
        margin-bottom: 28px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .login-footer {
        margin-top: 28px;
    }
}

/* =========================================================
   PANTALLAS DE POCA ALTURA
   ========================================================= */

@media (max-height: 700px) and (min-width: 851px) {

    .login-page {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .login-layout {
        min-height: 560px;
    }

    .login-visual {
        min-height: 560px;
        padding: 18px;
    }

    .login-visual img {
        max-height: 524px;
    }

    .login-panel {
        padding-top: 35px;
        padding-bottom: 30px;
    }

    .login-header {
        margin-bottom: 25px;
    }

    .login-footer {
        margin-top: 25px;
    }
}
