
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');


/* =====================================================
   SGAA - LATKIC S.A.
   LOGIN TRANSPARENTE Y RESPONSIVE
   ===================================================== */

:root {

    --rojo: #d31025;

    --rojo-oscuro: #ad0b1c;

    --rojo-claro: #ed2638;

    --blanco: #ffffff;

    --fuente: 'DM Sans', Arial, sans-serif;

    /* TRANSPARENCIA DEL FORMULARIO */

    --login-fondo: rgba(10, 15, 20, .25);

    --login-borde: rgba(255, 255, 255, .40);

    --login-blur: 5px;

    /* TRANSPARENCIA DE LOS CAMPOS */

    --input-fondo: rgba(15, 20, 25, .35);

    --input-borde: rgba(255, 255, 255, .65);

    --radio: 24px;

}


/* =====================================================
   CONFIGURACIÓN GENERAL
   ===================================================== */

* {

    box-sizing: border-box;

}

html {

    width: 100%;

    min-height: 100%;

}

body {

    margin: 0;

    width: 100%;

    min-height: 100vh;

    min-height: 100dvh;

    display: flex;

    flex-direction: column;

    font-family: var(--fuente);

    font-size: 16px;

    color: var(--blanco);

    background-color: #121619;

    position: relative;

    isolation: isolate;

    overflow-x: hidden;

}


/* =====================================================
   IMAGEN PANORÁMICA DE PANTALLA COMPLETA
   ===================================================== */

body::before {

    content: '';

    position: fixed;

    inset: 0;

    z-index: -2;

    background-image: url('../images/latkic-sgaa.png');

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

}


/* IMAGEN SIN CAPA OSCURA GENERAL */

body::after {

    content: '';

    position: fixed;

    inset: 0;

    z-index: -1;

    background: transparent;

    pointer-events: none;

}


button,
input {

    font: inherit;

}

button {

    cursor: pointer;

}

a:focus-visible,
button:focus-visible {

    outline: 3px solid #ffffff;

    outline-offset: 4px;

}


/* =====================================================
   CABECERA CORPORATIVA TRANSPARENTE
   ===================================================== */

.topbar {

    width: 100%;

    height: clamp(65px, 9vh, 86px);

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(
        105deg,
        rgba(184, 13, 23, .82),
        rgba(221, 21, 32, .75),
        rgba(255, 71, 73, .65)
    );

    backdrop-filter: blur(5px);

    -webkit-backdrop-filter: blur(5px);

    border-bottom: 1px solid rgba(255, 255, 255, .25);

    box-shadow: 0 4px 15px rgba(0, 0, 0, .10);

}


.system-logo {

    text-decoration: none;

    color: #fff;

    text-align: center;

    font-size: clamp(28px, 4.3vh, 38px);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -1px;

    text-shadow: 0 2px 5px rgba(0, 0, 0, .35);

}


.system-logo span {

    display: block;

    font-size: clamp(10px, 1.5vh, 13px);

    letter-spacing: 5px;

    font-weight: 600;

    margin-top: 4px;

}


.system-logo small {

    display: block;

    font-size: clamp(7px, 1vh, 9px);

    font-weight: 400;

    letter-spacing: 0;

    margin-top: 5px;

}


/* =====================================================
   CONTENEDOR PRINCIPAL
   ===================================================== */

main {

    flex: 1 0 auto;

    width: 100%;

    min-height: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        clamp(12px, 3vh, 40px)
        clamp(15px, 4vw, 70px);

    background: transparent;

}


/* =====================================================
   DISTRIBUCIÓN PRINCIPAL
   ===================================================== */

.login-card {

    width: 100%;

    max-width: 1450px;

    min-height: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(340px, 440px);

    align-items: center;

    gap: clamp(25px, 5vw, 100px);

    background: transparent;

    border: none;

    box-shadow: none;

}


/* =====================================================
   PANEL INFORMATIVO IZQUIERDO TRANSPARENTE
   ===================================================== */

.presentation {

    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    padding: 0;

    background: transparent;

}


.presentation-copy {

    width: 100%;

    max-width: 620px;

    padding: clamp(20px, 3vw, 35px);

    background: transparent;

    border: none;

    box-shadow: none;

    backdrop-filter: none;

    -webkit-backdrop-filter: none;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, .95),
        0 4px 12px rgba(0, 0, 0, .70);

}


.eyebrow {

    display: inline-block;

    font-size: clamp(10px, 1vw, 12px);

    font-weight: 800;

    letter-spacing: 1.5px;

    color: #fff;

}


h1 {

    font-size: clamp(27px, 3.3vw, 48px);

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -.8px;

    margin: clamp(12px, 2vh, 22px) 0;

}


.presentation p {

    font-size: clamp(13px, 1.2vw, 16px);

    line-height: 1.75;

    font-weight: 500;

    color: #fff;

    margin: 0;

}


/* =====================================================
   ETIQUETAS DE FUNCIONALIDADES
   ===================================================== */

.features {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: clamp(15px, 3vh, 28px);

}


.features span {

    font-size: 12px;

    font-weight: 600;

    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, .55);

    border-radius: 8px;

    background: rgba(0, 0, 0, .18);

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);

}


/* =====================================================
   LOGIN TRANSPARENTE - EFECTO CRISTAL
   ===================================================== */

.access {

    width: 100%;

    min-width: 0;

    text-align: center;

    padding:
        clamp(22px, 3.5vh, 38px)
        clamp(22px, 2.5vw, 35px);

    /* FONDO TRANSPARENTE */

    background: var(--login-fondo);

    /* EFECTO CRISTAL */

    backdrop-filter: blur(var(--login-blur));

    -webkit-backdrop-filter: blur(var(--login-blur));

    border: 1px solid var(--login-borde);

    border-radius: var(--radio);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, .20),
        inset 0 1px 0 rgba(255, 255, 255, .15);

    text-shadow: 0 2px 6px rgba(0, 0, 0, .85);

}


/* =====================================================
   LOGOTIPO CORPORATIVO
   ===================================================== */

.company-logo {

    width: 100%;

    max-width: 355px;

    margin: 0 auto clamp(18px, 3vh, 30px);

}


.company-logo > div {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: clamp(10px, 1.4vw, 18px);

}


.company-logo b {

    font-family: Arial, sans-serif;

    font-size: clamp(52px, 8vh, 78px);

    font-weight: 900;

    line-height: 1;

    letter-spacing: -6px;

    color: #e31229;

    text-shadow:
        0 2px 3px rgba(0, 0, 0, .60),
        0 0 1px #fff;

}


.company-logo strong {

    font-family: Arial, sans-serif;

    font-size: clamp(19px, 3vh, 28px);

    line-height: 1.05;

    letter-spacing: -.5px;

    font-weight: 800;

    color: #fff;

    text-align: left;

    text-shadow: 0 2px 5px rgba(0, 0, 0, .90);

}


.company-logo > span {

    display: block;

    color: #ff3045;

    font-size: clamp(16px, 2.7vh, 25px);

    letter-spacing: clamp(5px, .8vw, 10px);

    font-weight: 800;

    margin-top: 6px;

    padding-left: 5px;

}


/* =====================================================
   TÍTULO Y SUBTÍTULO
   ===================================================== */

h2 {

    font-size: clamp(22px, 3.3vh, 28px);

    font-weight: 800;

    letter-spacing: -.6px;

    margin: 0 0 7px;

    color: #fff;

}


.intro {

    font-size: clamp(12px, 1.7vh, 14px);

    line-height: 1.5;

    color: #fff;

    font-weight: 500;

    margin: 0 0 clamp(14px, 2.5vh, 24px);

}


#login-form {

    width: 100%;

}


/* =====================================================
   CAMPOS TRANSPARENTES
   ===================================================== */

.input-wrap {

    display: flex;

    align-items: center;

    gap: 13px;

    width: 100%;

    min-height: clamp(44px, 6vh, 54px);

    padding: 0 14px;

    margin-bottom: clamp(11px, 1.8vh, 17px);

    background: var(--input-fondo);

    color: #fff;

    border: 1px solid var(--input-borde);

    border-radius: 13px;

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;

}


.input-wrap:focus-within {

    background: rgba(15, 20, 25, .50);

    border-color: #ffffff;

    box-shadow: 0 0 0 3px rgba(255, 255, 255, .15);

}


.input-wrap svg {

    width: 18px;

    height: 18px;

    fill: currentColor;

    flex-shrink: 0;

}


.input-wrap input {

    width: 100%;

    min-width: 0;

    padding: clamp(10px, 1.5vh, 15px) 0;

    background: transparent;

    border: none;

    outline: none;

    font-size: 14px;

    font-weight: 500;

    color: #fff;

    caret-color: #fff;

    text-shadow: 0 1px 3px rgba(0, 0, 0, .70);

}


.input-wrap input::placeholder {

    color: rgba(255, 255, 255, .95);

    opacity: 1;

}


/* AUTOCOMPLETADO DEL NAVEGADOR */

.input-wrap input:-webkit-autofill {

    -webkit-text-fill-color: #fff;

    caret-color: #fff;

    transition: background-color 9999s ease-in-out 0s;

}


/* BOTÓN MOSTRAR CONTRASEÑA */

.input-wrap button {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 32px;

    height: 32px;

    background: transparent;

    border: none;

    padding: 5px;

    color: #fff;

}


.input-wrap button:hover {

    color: #ffb8bf;

}


.input-wrap button[aria-pressed="true"] {

    color: #ffb8bf;

}


/* =====================================================
   BOTÓN INICIAR SESIÓN
   ===================================================== */

.submit {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    width: 100%;

    min-height: clamp(44px, 6vh, 54px);

    margin-top: 7px;

    padding: clamp(11px, 1.5vh, 15px);

    background: linear-gradient(
        100deg,
        rgba(185, 13, 28, .90),
        rgba(223, 20, 39, .85)
    );

    color: #fff;

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 13px;

    font-size: 15px;

    font-weight: 800;

    text-shadow: 0 1px 3px rgba(0, 0, 0, .25);

    box-shadow: 0 5px 15px rgba(200, 16, 32, .20);

    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}


.submit svg {

    width: 19px;

    height: 19px;

}


.submit:hover {

    background: linear-gradient(
        100deg,
        #d30f21,
        #f02a3d
    );

    box-shadow: 0 8px 20px rgba(200, 16, 32, .35);

    transform: translateY(-1px);

}


.submit:active {

    transform: translateY(0);

}


/* =====================================================
   DEMOSTRACIÓN Y MENSAJES
   ===================================================== */

.demo-button {

    display: inline-block;

    margin-top: clamp(12px, 2vh, 18px);

    font-size: 13px;

    font-weight: 700;

    color: #fff;

    text-underline-offset: 4px;

}


.demo-button:hover {

    color: #ffd5d9;

}


.demo-note {

    font-size: 11px;

    line-height: 1.5;

    color: #fff;

    margin: 9px 0 0;

}


.copyright {

    font-size: 11px;

    line-height: 1.5;

    color: #fff;

    margin: clamp(12px, 2vh, 20px) 0 0;

}


#message:empty {

    display: none;

}


#message {

    font-size: 12px;

    line-height: 1.6;

    color: #fff;

    background: rgba(120, 0, 15, .70);

    border: 1px solid rgba(255, 255, 255, .35);

    border-radius: 8px;

    padding: 10px;

    margin: 12px 0 0;

}


/* =====================================================
   PIE DE PÁGINA TRANSPARENTE
   ===================================================== */

footer {

    width: 100%;

    flex-shrink: 0;

    padding:
        clamp(8px, 1.4vh, 12px)
        15px;

    background: linear-gradient(
        100deg,
        rgba(169, 11, 24, .80),
        rgba(216, 18, 32, .75)
    );

    backdrop-filter: blur(5px);

    -webkit-backdrop-filter: blur(5px);

    border-top: 1px solid rgba(255, 255, 255, .20);

    color: #fff;

    text-align: center;

    font-size: clamp(10px, 1.4vh, 12px);

    line-height: 1.5;

    text-shadow: 0 1px 4px rgba(0, 0, 0, .50);

}


/* =====================================================
   ACCESIBILIDAD
   ===================================================== */

.sr-only {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

}


/* =====================================================
   MONITORES GRANDES
   ===================================================== */

@media (min-width: 1600px) {

    .login-card {

        max-width: 1550px;

        grid-template-columns:
            minmax(0, 1fr)
            470px;

    }

    .presentation-copy {

        max-width: 650px;

    }

    .access {

        padding: 40px 35px;

    }

}


/* =====================================================
   TABLETS Y COMPUTADORAS DE MENOR ANCHO
   ===================================================== */

@media (min-width: 701px) and (max-width: 1000px) {

    main {

        padding: 20px;

    }

    .login-card {

        grid-template-columns:
            minmax(0, 1fr)
            minmax(320px, 360px);

        gap: 20px;

    }

    .presentation-copy {

        padding: 15px;

    }

    h1 {

        font-size: 27px;

    }

    .access {

        padding: 25px 20px;

    }

    .company-logo b {

        font-size: 60px;

    }

    .company-logo strong {

        font-size: 22px;

    }

    .company-logo > span {

        font-size: 19px;

        letter-spacing: 7px;

    }

}


/* =====================================================
   LAPTOPS Y PANTALLAS DE POCA ALTURA
   ===================================================== */

@media (min-width: 701px) and (max-height: 800px) {

    .topbar {

        height: 65px;

    }

    .system-logo {

        font-size: 30px;

    }

    main {

        padding-top: 12px;

        padding-bottom: 12px;

    }

    .access {

        padding: 22px 26px;

    }

    .company-logo {

        margin-bottom: 17px;

    }

    .company-logo b {

        font-size: 58px;

    }

    .company-logo strong {

        font-size: 22px;

    }

    .company-logo > span {

        font-size: 19px;

        letter-spacing: 8px;

    }

    h2 {

        font-size: 24px;

    }

    .intro {

        margin-bottom: 15px;

    }

    .input-wrap {

        min-height: 44px;

        margin-bottom: 11px;

    }

    .input-wrap input {

        padding: 10px 0;

    }

    .submit {

        min-height: 44px;

        padding: 11px;

    }

    .demo-button {

        margin-top: 12px;

    }

    .copyright {

        margin-top: 12px;

    }

}


/* =====================================================
   PANTALLAS DE ALTURA MUY REDUCIDA
   ===================================================== */

@media (min-width: 701px) and (max-height: 600px) {

    .topbar {

        height: 58px;

    }

    .system-logo {

        font-size: 26px;

    }

    main {

        padding-top: 10px;

        padding-bottom: 10px;

    }

    .access {

        padding: 16px 24px;

    }

    .company-logo {

        margin-bottom: 12px;

    }

    .company-logo b {

        font-size: 48px;

    }

    .company-logo strong {

        font-size: 19px;

    }

    .company-logo > span {

        font-size: 16px;

        letter-spacing: 6px;

    }

    h2 {

        font-size: 22px;

    }

    .intro {

        margin-bottom: 12px;

    }

    .features {

        margin-top: 12px;

    }

    footer {

        padding: 6px 12px;

        font-size: 10px;

    }

}


/* =====================================================
   CELULARES
   ===================================================== */

@media (max-width: 700px) {

    body::before {

        background-position: 65% center;

        background-size: cover;

    }

    .topbar {

        height: 72px;

    }

    .system-logo {

        font-size: 31px;

    }

    .system-logo span {

        font-size: 11px;

        letter-spacing: 4px;

    }

    .system-logo small {

        font-size: 7px;

    }

    main {

        padding: 20px 15px;

    }

    .login-card {

        max-width: 430px;

        grid-template-columns: minmax(0, 1fr);

        gap: 0;

    }

    .presentation {

        display: none;

    }

    .access {

        padding: 26px 22px;

        border-radius: 20px;

        background: rgba(10, 15, 20, .40);

    }

    .company-logo {

        margin-bottom: 24px;

    }

    .company-logo b {

        font-size: 58px;

    }

    .company-logo strong {

        font-size: 21px;

    }

    .company-logo > span {

        font-size: 18px;

        letter-spacing: 7px;

    }

    h2 {

        font-size: 25px;

    }

    .intro {

        font-size: 12px;

        margin-bottom: 20px;

    }

    .input-wrap {

        min-height: 48px;

        margin-bottom: 14px;

    }

    .input-wrap input {

        font-size: 16px;

    }

    .submit {

        min-height: 48px;

    }

    footer {

        font-size: 10px;

        padding: 10px 12px;

    }

}


/* =====================================================
   CELULARES PEQUEÑOS
   ===================================================== */

@media (max-width: 360px) {

    main {

        padding: 12px;

    }

    .access {

        padding: 20px 15px;

    }

    .company-logo b {

        font-size: 48px;

    }

    .company-logo strong {

        font-size: 18px;

    }

    .company-logo > span {

        font-size: 16px;

        letter-spacing: 5px;

    }

    h2 {

        font-size: 22px;

    }

}


/* =====================================================
   CELULARES DE POCA ALTURA
   ===================================================== */

@media (max-width: 700px) and (max-height: 650px) {

    main {

        padding: 12px;

    }

    .access {

        padding: 18px;

    }

    .company-logo {

        margin-bottom: 14px;

    }

    .company-logo b {

        font-size: 48px;

    }

    .intro {

        margin-bottom: 14px;

    }

    .input-wrap {

        margin-bottom: 10px;

        min-height: 44px;

    }

    .submit {

        min-height: 44px;

    }

    .copyright {

        margin-top: 10px;

    }

}


/* =====================================================
   COMPATIBILIDAD SIN EFECTO BLUR
   ===================================================== */

@supports not (backdrop-filter: blur(5px)) {

    .access {

        background: rgba(10, 15, 20, .55);

    }

}


/* =====================================================
   REDUCIR ANIMACIONES
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation: none !important;

        transition: none !important;

        scroll-behavior: auto !important;

    }

}
/* Formularios de autenticación real */
.auth-notice{color:#b5ffd0;font-size:14px}.auth-notice:empty{display:none}.setup-card{max-width:1050px}.setup-form{text-align:left}.setup-form label{display:block;font-size:14px;font-weight:600;margin:12px 0 6px}.setup-form .input-wrap{margin-bottom:8px}.setup-form .input-wrap input{min-height:43px}.password-help{font-size:12px;line-height:1.5;text-align:left;color:#e1e5e9;margin:8px 0}.auth-errors{background:#7c1426dd;color:white;border:1px solid #f19ba5;border-radius:8px;text-align:left;padding:10px;font-size:14px;line-height:1.5}.auth-errors ul{padding-left:20px;margin:0}
