/* =========================================================
   AUTENTICAR - SOLUCIONES INDUSTRIALES L&S
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(135deg, #111111, #3a3a3a, #6b0000);
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
}

/* =========================================================
   ESTRUCTURA GENERAL
   ========================================================= */

/*
   Esta clase debe envolver:
   - Encabezado.php
   - contenido del login
   - Footer.php
*/
.pagina-autenticar {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #111111, #3a3a3a, #6b0000);
}

/*
   Esta parte ocupa el espacio libre entre encabezado y footer.
   Por eso el footer queda abajo.
*/
.contenido-autenticar {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 20px;
}

/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

.login-reg-panel {
    position: relative;
    text-align: center;
    width: 82%;
    max-width: 1050px;
    min-height: 450px;
    background-color: rgba(40, 40, 40, 0.88);
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 auto;
}

/* =========================================================
   PANEL BLANCO DEL FORMULARIO
   ========================================================= */

.white-panel {
    background-color: #ffffff;
    min-height: 510px;
    position: absolute;
    top: 50%;
    width: 50%;
    right: calc(50% - 50px);
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   INFORMACIÓN IZQUIERDA
   ========================================================= */

.login-info-box {
    width: 35%;
    padding: 0 45px;
    top: 25%;
    left: 0;
    position: absolute;
    text-align: left;
    color: #ffffff;
}

.login-info-box h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #ffffff;
}

.login-info-box p {
    font-size: 15px;
    line-height: 1.5;
    color: #dcdcdc;
}

/* =========================================================
   INFORMACIÓN DERECHA
   ========================================================= */

.register-info-box {
    width: 35%;
    padding: 0 45px;
    top: 25%;
    right: 0;
    position: absolute;
    text-align: left;
    color: #ffffff;
}

.register-info-box h3 {
    font-size: 25px;
    margin-bottom: 12px;
    color: #ffffff;
}

.register-info-box p {
    font-size: 15px;
    line-height: 1.5;
    color: #dcdcdc;
}

/* =========================================================
   BOTÓN DECORATIVO
   ========================================================= */

#label-login {
    border: 2px solid #b30000;
    background-color: #b30000;
    color: #ffffff;
    padding: 9px 16px;
    width: 180px;
    display: block;
    text-align: center;
    border-radius: 12px;
    font-weight: bold;
    font-size: 15px;
    margin-top: 18px;
}

/* =========================================================
   CONTENIDO LOGIN
   ========================================================= */

.login-show {
    width: 100%;
    padding: 35px 50px;
    color: #222222;
    text-align: left;
}

.login-show h2 {
    text-align: center;
    margin: 10px 0 25px 0;
    color: #b30000;
    font-size: 28px;
}

/* =========================================================
   LOGO
   ========================================================= */

.logo-login {
    text-align: center;
    margin-bottom: 10px;
}

.logo-login img {
    max-width: 210px;
    max-height: 90px;
    object-fit: contain;
    background: transparent;
}

/* =========================================================
   CAMPOS
   ========================================================= */

.campo {
    margin-bottom: 18px;
}

.campo label {
    display: block;
    font-weight: bold;
    color: #333333;
    margin-bottom: 7px;
}

.campo input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b5b5b5;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.3s ease;
    background-color: #ffffff;
}

.campo input:focus {
    border-color: #b30000;
    box-shadow: 0 0 6px rgba(179, 0, 0, 0.35);
}

/* =========================================================
   BOTÓN LOGIN
   ========================================================= */

.btn-login {
    width: 100%;
    background-color: #b30000;
    color: #ffffff;
    border: none;
    padding: 13px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-login:hover {
    background-color: #850000;
    transform: translateY(-1px);
}

/* =========================================================
   ERROR
   ========================================================= */

.alerta-error {
    margin-top: 18px;
    padding: 12px;
    border-radius: 10px;
    background-color: #ffe1e1;
    color: #9b0000;
    border: 1px solid #cc0000;
    text-align: center;
    font-weight: bold;
}

/* =========================================================
   VOLVER
   ========================================================= */

.volver {
    text-align: center;
    margin-top: 16px;
}

.volver a {
    color: #555555;
    text-decoration: none;
    font-size: 14px;
}

.volver a:hover {
    color: #b30000;
    text-decoration: underline;
}

/* =========================================================
   FOOTER EXISTENTE
   ========================================================= */

.footer-ls {
    width: 100%;
    background-color: #111111;
    color: #ffffff;
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 0;
    flex-shrink: 0;
    position: static;
}

.footer-ls small {
    color: #ffffff;
}

/* Por si otro CSS le está poniendo position fixed o absolute al footer */
.pagina-autenticar .footer-ls {
    position: static !important;
    margin-top: 0 !important;
}

/* =========================================================
   RESPONSIVE TABLET / CELULAR
   ========================================================= */

@media screen and (max-width: 850px) {

    .contenido-autenticar {
        align-items: flex-start;
        padding: 30px 15px;
    }

    .login-reg-panel {
        width: 95%;
        min-height: auto;
        height: auto;
        padding: 25px 0;
        margin: 0 auto;
    }

    .login-info-box,
    .register-info-box {
        display: none;
    }

    .white-panel {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 90%;
        min-height: auto;
        margin: auto;
    }

    .login-show {
        padding: 30px 25px;
    }

    .logo-login img {
        max-width: 170px;
    }

    .login-show h2 {
        font-size: 25px;
    }
}

/* =========================================================
   RESPONSIVE CELULAR PEQUEÑO
   ========================================================= */

@media screen and (max-width: 480px) {

    .contenido-autenticar {
        padding: 22px 10px;
    }

    .login-reg-panel {
        width: 100%;
        border-radius: 18px;
        padding: 18px 0;
    }

    .white-panel {
        width: 94%;
        border-radius: 18px;
    }

    .login-show {
        padding: 25px 18px;
    }

    .login-show h2 {
        font-size: 23px;
        margin-bottom: 22px;
    }

    .logo-login img {
        max-width: 140px;
        max-height: 75px;
    }

    .campo input {
        padding: 11px 12px;
        font-size: 14px;
    }

    .btn-login {
        padding: 12px;
        font-size: 15px;
    }

    .footer-ls {
        font-size: 13px;
        padding: 13px 15px;
    }
}