/* =========================================================
   GDM - SISTEMA DE ASISTENCIA WEB
   GRUPO DELTA MOTORS
   VERSION COMPACTA - ESCALA 80%
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --orange: #ff7600;
    --orange-dark: #ed6500;

    --red: #d71920;

    --blue: #123d73;

    --dark: #20252b;

    --text: #30353a;

    --gray: #777777;

    --border: #dedede;

    --white: #ffffff;

}


/* =========================================================
   RESET
   ========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


/* =========================================================
   HTML
   ========================================================= */

html,
body {

    width: 100%;

    height: 100%;

}


/* =========================================================
   BODY
   ========================================================= */

body {

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    /*
     * FONDO DEL ALMACEN
     *
     * Coloca tu imagen aquí:
     *
     * /img/fondo-almacen.jpg
     */

    background-image:

        linear-gradient(
            rgba(255, 255, 255, 0.40),
            rgba(255, 255, 255, 0.40)
        ),

        url("../img/fondo-almacen.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    background-attachment: fixed;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 15px;

    overflow: hidden;

}


/* =========================================================
   CONTENEDOR PRINCIPAL
   =========================================================

   ANTES:
   1200 x 650

   AHORA:
   960 x 520

   Esto equivale aproximadamente al 80%.
   ========================================================= */

.login-container {

    width: 960px;

    height: 620px;

    max-width: 95vw;

    max-height: 94vh;

    background: #ffffff;

    border-radius: 22px;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.18);

    overflow: hidden;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    grid-template-rows:
        1fr 45px;

    position: relative;

    flex-shrink: 0;

}


/* =========================================================
   PANEL IZQUIERDO
   ========================================================= */

.brand-panel {

    position: relative;

    overflow: hidden;

    padding: 24px 36px;

    background:

        linear-gradient(
            135deg,
            #ffffff 0%,
            #fafafa 70%,
            #f5f5f5 100%
        );

}


/* =========================================================
   DECORACION NARANJA
   ========================================================= */

.brand-panel::before {

    content: "";

    position: absolute;

    width: 175px;

    height: 175px;

    background: var(--orange);

    left: -135px;

    bottom: 40px;

    border-radius:
        0 85px 85px 0;

    transform: rotate(-10deg);

}


/* =========================================================
   DECORACION SUPERIOR
   ========================================================= */

.brand-panel::after {

    content: "";

    position: absolute;

    width: 120px;

    height: 120px;

    border: 16px solid
        rgba(255, 118, 0, 0.08);

    right: -55px;

    top: -65px;

    border-radius: 50%;

}


/* =========================================================
   CONTENIDO BRAND
   ========================================================= */

.brand-content {

    position: relative;

    z-index: 2;

    height: 100%;

    display: flex;

    flex-direction: column;

}


/* =========================================================
   LOGO
   ========================================================= */

.logo {

    display: flex;

    align-items: center;

    gap: 11px;

}


.logo-gdm {

    font-size: 46px;

    font-weight: 900;

    font-style: italic;

    color: var(--orange);

    line-height: 0.8;

    letter-spacing: -3px;

}


.logo-symbol {

    width: 39px;

    height: 39px;

    background: var(--red);

    border-radius: 50%;

    position: relative;

    display: block;

}


.logo-symbol::after {

    content: "";

    position: absolute;

    width: 5px;

    height: 29px;

    background: white;

    left: 50%;

    top: 50%;

    transform:
        translate(-50%, -50%);

}


.company-name {

    color: var(--blue);

    font-weight: 700;

    font-size: 11px;

    margin-top: 4px;

    letter-spacing: 0.2px;

}


/* =========================================================
   TITULO PRINCIPAL
   ========================================================= */

.brand-content h1 {

    font-size: 34px;

    line-height: 1.05;

    margin-top: 25px;

    color: var(--dark);

    font-weight: 750;

}


.orange-line {

    width: 40px;

    height: 3px;

    background: var(--orange);

    border-radius: 10px;

    margin-top: 12px;

}


/* =========================================================
   DESCRIPCION
   ========================================================= */

.description {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-top: 17px;

    max-width: 410px;

}


.description-icon {

    min-width: 46px;

    width: 46px;

    height: 46px;

    border: 2px solid var(--orange);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--orange);

    font-size: 19px;

}


.description p {

    font-size: 14px;

    line-height: 1.4;

    color: #4b5055;

}


/* =========================================================
   IMAGEN DE REPUESTOS
   ========================================================= */

.parts-image {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 100px;

    margin-top: 5px;

}


/* Imagen real */

.parts-image img {

    width: 82%;

    max-width: 390px;

    max-height: 155px;

    object-fit: contain;

}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.parts-placeholder {

    width: 70%;

    max-width: 350px;

    height: 110px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #f0f0f0,
            #ffffff
        );

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    color: #b8b8b8;

    border: 1px solid #eeeeee;

    font-size: 13px;

}


.parts-placeholder i {

    font-size: 34px;

    color: #d0d0d0;

}


/* =========================================================
   BENEFICIOS
   ========================================================= */

.benefits {

    display: flex;

    gap: 27px;

    margin-top: auto;

    padding-top: 5px;

}


.benefit {

    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 13px;

    font-weight: 650;

}


.benefit i {

    color: var(--orange);

    font-size: 17px;

}


/* =========================================================
   PANEL LOGIN
   ========================================================= */

.login-panel {

    background:
        linear-gradient(
            135deg,
            #fafafa,
            #ffffff
        );

    padding: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =========================================================
   TARJETA LOGIN
   ========================================================= */

.login-card {

    width: 100%;

    max-width: 360px;

    background: #ffffff;

    padding: 20px 24px;

    border-radius: 18px;

    box-shadow:
        0 9px 24px
        rgba(0, 0, 0, 0.08);

}


/* =========================================================
   TITULO LOGIN
   ========================================================= */

.login-title {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 18px;

}


.login-icon {

    width: 46px;

    height: 46px;

    background: var(--orange);

    color: white;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

}


.login-title h2 {

    font-size: 24px;

    color: var(--dark);

    line-height: 1;

}


.login-title span {

    display: block;

    width: 36px;

    height: 3px;

    background: var(--orange);

    margin-top: 6px;

    border-radius: 10px;

}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.input-group {

    margin-bottom: 13px;

}


.input-group label {

    display: block;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 5px;

    color: #292d32;

}


/* =========================================================
   INPUT
   ========================================================= */

.input-wrapper {

    width: 100%;

    height: 39px;

    border: 1px solid var(--border);

    border-radius: 9px;

    display: flex;

    align-items: center;

    padding: 0 11px;

    transition: 0.2s;

    background: white;

}


.input-wrapper:focus-within {

    border-color: var(--orange);

    box-shadow:
        0 0 0 2px
        rgba(255, 118, 0, 0.10);

}


.input-wrapper > i {

    color: #929292;

    font-size: 15px;

    width: 26px;

}


.input-wrapper input {

    width: 100%;

    height: 100%;

    border: none;

    outline: none;

    font-size: 13px;

    color: var(--dark);

    background: transparent;

}


.input-wrapper input::placeholder {

    color: #a3a3a3;

}


/* =========================================================
   MOSTRAR PASSWORD
   ========================================================= */

.show-password {

    border: none;

    background: none;

    cursor: pointer;

    color: #999;

    font-size: 15px;

    padding: 5px;

}


.show-password:hover {

    color: var(--orange);

}


/* =========================================================
   TECLADO NUMERICO
   ========================================================= */

.numeric-keypad {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 6px;

    margin-top: 6px;

}


.numeric-keypad button {

    height: 39px;

    border: 1px solid #eeeeee;

    border-radius: 8px;

    background: #ffffff;

    font-size: 17px;

    font-weight: 600;

    color: #292d32;

    cursor: pointer;

    box-shadow:
        0 2px 5px
        rgba(0, 0, 0, 0.04);

    transition:
        transform 0.1s,
        background 0.2s,
        color 0.2s;

}


.numeric-keypad button:hover {

    background: #fff5ec;

    border-color: var(--orange);

    color: var(--orange);

}


.numeric-keypad button:active {

    transform: scale(0.94);

    background: var(--orange);

    color: white;

}


.numeric-keypad .key-action {

    color: #555;

    background: #f7f7f7;

}


/* =========================================================
   BOTON INGRESAR
   ========================================================= */

.login-button {

    width: 100%;

    height: 42px;

    margin-top: 11px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            90deg,
            var(--orange),
            #ff8500
        );

    color: white;

    font-size: 15px;

    font-weight: 750;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    box-shadow:
        0 6px 14px
        rgba(255, 118, 0, 0.22);

    transition: 0.2s;

}


.login-button:hover {

    background:
        linear-gradient(
            90deg,
            var(--orange-dark),
            var(--orange)
        );

    transform: translateY(-1px);

}


.login-button:active {

    transform: translateY(0);

}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {

    grid-column: 1 / -1;

    min-height: 45px;

    border-top: 1px solid #eeeeee;

    background: white;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    flex-wrap: wrap;

    font-size: 10px;

    color: #777;

}


.footer strong {

    color: var(--orange);

}


.footer .zkteco {

    color: #648b35;

    font-size: 12px;

    font-style: italic;

}


.copyright {

    margin-left: 7px;

}


/* =========================================================
   PANTALLAS MEDIANAS
   ========================================================= */

@media (max-width: 1050px) {

    body {

        padding: 10px;

        overflow: auto;

    }


    .login-container {

        width: 92vw;

        height: auto;

        min-height: 500px;

    }


    .brand-panel {

        padding: 22px 28px;

    }


    .login-panel {

        padding: 14px;

    }


    .brand-content h1 {

        font-size: 31px;

    }


    .login-card {

        max-width: 340px;

    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    body {

        display: block;

        min-height: 100vh;

        overflow: auto;

        padding: 0;

    }


    .login-container {

        width: 100%;

        max-width: none;

        height: auto;

        min-height: 100vh;

        border-radius: 0;

        display: flex;

        flex-direction: column;

    }


    .brand-panel {

        min-height: 330px;

        padding: 25px;

    }


    .brand-content h1 {

        font-size: 32px;

        margin-top: 22px;

    }


    .description {

        margin-top: 15px;

    }


    .parts-image {

        min-height: 90px;

    }


    .parts-placeholder {

        height: 90px;

    }


    .login-panel {

        padding: 20px;

    }


    .login-card {

        max-width: 430px;

        padding: 25px;

        box-shadow: none;

    }


    .footer {

        padding: 15px;

        text-align: center;

    }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 500px) {

    .brand-panel {

        min-height: 300px;

        padding: 22px 18px;

    }


    .logo-gdm {

        font-size: 43px;

    }


    .logo-symbol {

        width: 37px;

        height: 37px;

    }


    .company-name {

        font-size: 11px;

    }


    .brand-content h1 {

        font-size: 27px;

    }


    .description-icon {

        min-width: 44px;

        width: 44px;

        height: 44px;

        font-size: 18px;

    }


    .description p {

        font-size: 12px;

    }


    .parts-image {

        display: none;

    }


    .benefits {

        justify-content: space-between;

        gap: 5px;

    }


    .benefit {

        font-size: 11px;

    }


    .benefit i {

        font-size: 14px;

    }


    .login-panel {

        padding: 12px;

    }


    .login-card {

        padding: 20px 14px;

    }


    .login-title h2 {

        font-size: 24px;

    }


    .login-icon {

        width: 45px;

        height: 45px;

        font-size: 19px;

    }


    .input-wrapper {

        height: 43px;

    }


    .numeric-keypad {

        gap: 6px;

    }


    .numeric-keypad button {

        height: 45px;

        font-size: 19px;

    }


    .login-button {

        height: 48px;

        font-size: 16px;

    }


    .footer {

        font-size: 10px;

    }

}


/* =========================================================
   CELULAR MUY PEQUEÑO
   ========================================================= */

@media (max-width: 360px) {

    .brand-panel {

        min-height: 280px;

    }


    .brand-content h1 {

        font-size: 24px;

    }


    .numeric-keypad button {

        height: 42px;

    }

}