/* ==========================================================
   GAR Data Center
   Login + Hub de herramientas
   ========================================================== */


/* ----------------------------------------------------------
   Página
   ---------------------------------------------------------- */

.lc-login-page {
    margin: 0;
    min-height: 100vh;

    background: var(--lc-orange);

    overflow-x: hidden;
}


/* ----------------------------------------------------------
   Layout principal
   ---------------------------------------------------------- */

.lc-login-layout {
    width: 100%;
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 42%)
        minmax(0, 58%);
}



/* ==========================================================
   ZONA IZQUIERDA
   LOGIN
   ========================================================== */

.lc-login-access {
    min-height: 100vh;

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

    padding: 48px;

    background: var(--lc-white);
}


/* ----------------------------------------------------------
   Panel
   ---------------------------------------------------------- */

.lc-login-panel {
    width: min(440px, 100%);

    margin: auto;
}


/* ----------------------------------------------------------
   Logo
   ---------------------------------------------------------- */

.lc-login-brand {
    margin-bottom: 46px;
}


.lc-login-logo {
    display: block;

    width: min(320px, 85%);
    height: auto;

    object-fit: contain;
    object-position: left center;
}



/* ----------------------------------------------------------
   Encabezado login
   ---------------------------------------------------------- */

.lc-login-heading {
    margin-bottom: 36px;
}


.lc-login-eyebrow {
    display: block;

    margin-bottom: 9px;

    color: var(--lc-orange);

    font-family: var(--lc-font-heading);
    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}


.lc-login-heading h1 {
    margin: 0 0 14px;

    color: var(--lc-black);

    font-family: var(--lc-font-heading);

    font-size: clamp(36px, 4vw, 54px);
    font-weight: 800;

    line-height: 0.95;

    letter-spacing: -0.035em;

    text-transform: none;
}


.lc-login-heading p {
    max-width: 380px;

    margin: 0;

    color: var(--lc-black-60);

    font-family: var(--lc-font-body);

    font-size: 16px;
    font-weight: 400;

    line-height: 1.5;
}



/* ----------------------------------------------------------
   Error de login
   ---------------------------------------------------------- */

.lc-login-error {
    display: flex;
    flex-direction: column;

    gap: 4px;

    margin-bottom: 26px;

    padding: 14px 16px;

    border-left: 5px solid var(--lc-orange);

    background: var(--lc-orange-10);

    color: var(--lc-black);

    font-family: var(--lc-font-body);
}


.lc-login-error strong {
    font-family: var(--lc-font-heading);

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


.lc-login-error span {
    font-size: 14px;

    line-height: 1.4;
}



/* ----------------------------------------------------------
   Formulario
   ---------------------------------------------------------- */

.lc-login-form {
    display: flex;
    flex-direction: column;

    gap: 22px;
}


.lc-login-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}



/* Label */

.lc-login-field label {
    color: var(--lc-black);

    font-family: var(--lc-font-heading);

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

    text-transform: uppercase;

    letter-spacing: 0.06em;
}



/* Input */

.lc-login-field input {
    width: 100%;
    height: 54px;

    padding: 0 16px;

    border: 1px solid var(--lc-black-20);
    border-radius: 10px;

    outline: none;

    background: var(--lc-white);

    color: var(--lc-black);

    font-family: var(--lc-font-body);

    font-size: 16px;
    font-weight: 400;

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


.lc-login-field input::placeholder {
    color: var(--lc-black-40);
}


.lc-login-field input:hover {
    border-color: var(--lc-black-40);
}


.lc-login-field input:focus {
    border-color: var(--lc-orange);

    box-shadow:
        0 0 0 4px var(--lc-orange-10);
}



/* ----------------------------------------------------------
   Botón iniciar sesión
   ---------------------------------------------------------- */

.lc-login-submit {
    width: 100%;
    min-height: 56px;

    margin-top: 6px;

    padding: 0 20px;

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

    gap: 16px;

    border: 0;
    border-radius: 10px;

    background: var(--lc-black);

    color: var(--lc-white);

    cursor: pointer;

    font-family: var(--lc-font-heading);

    font-size: 15px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;

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


.lc-login-submit:hover {
    background: var(--lc-orange);

    color: var(--lc-black);

    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.12);
}


.lc-login-submit:active {
    transform: translateY(0);

    box-shadow: none;
}


.lc-login-submit-arrow {
    font-family: var(--lc-font-body);

    font-size: 24px;
    font-weight: 400;

    line-height: 1;

    transition: transform 0.15s ease;
}


.lc-login-submit:hover .lc-login-submit-arrow {
    transform: translateX(4px);
}



/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.lc-login-footer {
    margin: 40px 0 0;

    color: var(--lc-black-40);

    font-family: var(--lc-font-body);

    font-size: 11px;
    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.14em;
}



/* ==========================================================
   ZONA DERECHA
   HERRAMIENTAS
   ========================================================== */

.lc-login-tools {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 56px 64px;

    overflow: hidden;

    background: var(--lc-orange);
}



/* ----------------------------------------------------------
   Decoración fondo
   ---------------------------------------------------------- */

.lc-login-tools::before {
    content: "GAR";

    position: absolute;

    right: -70px;
    bottom: -90px;

    color: rgba(255, 255, 255, 0.08);

    font-family: var(--lc-font-heading);

    font-size: clamp(240px, 30vw, 520px);
    font-weight: 800;

    line-height: 0.75;

    pointer-events: none;
}



/* ----------------------------------------------------------
   Contenido
   ---------------------------------------------------------- */

.lc-login-tools-content {
    position: relative;

    z-index: 1;

    width: min(800px, 100%);

    margin: 0 auto;
}



/* ----------------------------------------------------------
   Header herramientas
   ---------------------------------------------------------- */

.lc-login-tools-header {
    max-width: 650px;

    margin-bottom: 40px;
}


.lc-login-tools-label {
    display: block;

    margin-bottom: 10px;

    color: var(--lc-black);

    font-family: var(--lc-font-heading);

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

    text-transform: uppercase;

    letter-spacing: 0.14em;
}


.lc-login-tools-header h2 {
    margin: 0 0 16px;

    color: var(--lc-black);

    font-family: var(--lc-font-heading);

    font-size: clamp(40px, 5vw, 68px);
    font-weight: 800;

    line-height: 0.9;

    letter-spacing: -0.04em;

    text-transform: none;
}


.lc-login-tools-header p {
    max-width: 520px;

    margin: 0;

    color: var(--lc-black-75);

    font-family: var(--lc-font-body);

    font-size: 16px;
    font-weight: 400;

    line-height: 1.5;
}



/* ==========================================================
   GRID HERRAMIENTAS
   ========================================================== */

.lc-login-tools-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}



/* ==========================================================
   TARJETA HERRAMIENTA
   ========================================================== */

.lc-login-tool {
    position: relative;

    min-height: 130px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    padding: 20px;

    overflow: hidden;

    border: 2px solid var(--lc-black);
    border-radius: 14px;

    background: transparent;

    color: var(--lc-black);

    text-decoration: none;

    box-shadow: none;

    transition:
        transform 0.16s ease,
        background 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease;
}



/* Costos ocupa dos columnas */

.lc-login-tool-featured {
    grid-column: 1 / -1;
}



/* ----------------------------------------------------------
   Contenido interno
   ---------------------------------------------------------- */

.lc-login-tool-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}



/* Número */

.lc-login-tool-number {
    display: block;

    margin-bottom: 18px;

    color: currentColor;

    font-family: var(--lc-font-body);

    font-size: 11px;
    font-weight: 500;

    line-height: 1;

    letter-spacing: 0.10em;

    opacity: 0.55;
}



/* ----------------------------------------------------------
   Icono + nombre
   ---------------------------------------------------------- */

.lc-login-tool-name {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;
}



/* Icono */

.lc-login-tool-icon {
    width: 42px;
    height: 42px;

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

    flex: 0 0 auto;

    border: 2px solid currentColor;
    border-radius: 10px;

    color: inherit;

    transition:
        background 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}


.lc-login-tool-icon svg {
    width: 22px;
    height: 22px;

    display: block;
}



/* Nombre */

.lc-login-tool strong {
    min-width: 0;

    display: block;

    color: inherit;

    font-family: var(--lc-font-heading);

    font-size: clamp(19px, 1.8vw, 26px);
    font-weight: 700;

    line-height: 1;

    letter-spacing: -0.02em;

    overflow-wrap: anywhere;
}



/* ----------------------------------------------------------
   Flecha
   ---------------------------------------------------------- */

.lc-login-tool-arrow {
    width: 38px;
    height: 38px;

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

    flex: 0 0 auto;

    border: 2px solid currentColor;
    border-radius: 50%;

    color: inherit;

    font-family: var(--lc-font-body);

    font-size: 20px;

    line-height: 1;

    transition:
        transform 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
}



/* ==========================================================
   HOVER TARJETA
   ========================================================== */

.lc-login-tool:hover {
    background: var(--lc-black);

    color: var(--lc-white);

    transform: translateY(-4px);

    box-shadow:
        7px 7px 0 var(--lc-white);
}



/* Icono invertido */

.lc-login-tool:hover .lc-login-tool-icon {
    background: var(--lc-white);

    color: var(--lc-black);

    transform: rotate(-3deg);
}



/* Flecha invertida */

.lc-login-tool:hover .lc-login-tool-arrow {
    background: var(--lc-white);

    color: var(--lc-black);

    transform:
        translate(3px, -3px);
}



/* Click */

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



/* Focus teclado */

.lc-login-tool:focus-visible {
    outline: 3px solid var(--lc-white);

    outline-offset: 4px;
}



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

@media (max-width: 1100px) {

    .lc-login-layout {
        grid-template-columns:
            minmax(370px, 44%)
            minmax(0, 56%);
    }


    .lc-login-access {
        padding: 40px;
    }


    .lc-login-tools {
        padding: 48px 42px;
    }


    .lc-login-tool {
        padding: 18px;
    }


    .lc-login-tool-name {
        gap: 10px;
    }

}



/* ----------------------------------------------------------
   Tablet
   ---------------------------------------------------------- */

@media (max-width: 850px) {

    .lc-login-layout {
        display: block;
    }


    .lc-login-access {
        min-height: auto;

        padding:
            52px
            24px
            60px;
    }


    .lc-login-panel {
        width: min(520px, 100%);
    }


    .lc-login-brand {
        margin-bottom: 36px;
    }


    .lc-login-logo {
        width: min(300px, 80%);
    }


    .lc-login-tools {
        min-height: auto;

        padding:
            56px
            24px
            72px;
    }


    .lc-login-tools-content {
        width: min(650px, 100%);
    }


    .lc-login-tools-header {
        margin-bottom: 34px;
    }

}



/* ----------------------------------------------------------
   Móvil
   ---------------------------------------------------------- */

@media (max-width: 560px) {

    .lc-login-access {
        padding:
            40px
            20px
            48px;
    }


    .lc-login-heading h1 {
        font-size: 38px;
    }


    .lc-login-tools {
        padding:
            48px
            20px
            60px;
    }


    .lc-login-tools-header h2 {
        font-size: 42px;
    }


    .lc-login-tools-grid {
        grid-template-columns: 1fr;
    }


    .lc-login-tool-featured {
        grid-column: auto;
    }


    .lc-login-tool {
        min-height: 110px;
    }


    .lc-login-tool-number {
        margin-bottom: 14px;
    }


    .lc-login-tool strong {
        font-size: 20px;
    }


    .lc-login-tool-icon {
        width: 38px;
        height: 38px;
    }


    .lc-login-tool-icon svg {
        width: 20px;
        height: 20px;
    }

}



/* ----------------------------------------------------------
   Móvil pequeño
   ---------------------------------------------------------- */

@media (max-width: 390px) {

    .lc-login-tool {
        padding: 16px;

        gap: 12px;
    }


    .lc-login-tool-name {
        gap: 9px;
    }


    .lc-login-tool-arrow {
        width: 34px;
        height: 34px;

        font-size: 18px;
    }

}