/* =========================================================
   CUPOTECH SOLUTIONS
   LOGIN INTRANET
   ========================================================= */

:root {

    --cupotech-blue-dark: #0b2f6b;
    --cupotech-blue: #145da0;

    --cupotech-cyan: #2aa9d6;
    --cupotech-cyan-light: #e9f8fc;

    --cupotech-orange: #f58220;
    --cupotech-orange-dark: #d9680b;
    --cupotech-orange-light: #fff4e9;

    --login-background: #f4f8fc;

    --login-text: #1e293b;
    --login-muted: #64748b;
    --login-border: #e2e8f0;

    --login-shadow:
            0 22px 65px rgba(15, 47, 107, 0.12);
}


/* =========================================================
   RESET
   ========================================================= */

* {

    box-sizing: border-box;

    margin: 0;
    padding: 0;

    font-family: 'Inter', sans-serif;
}


html {

    min-height: 100%;
}


body {

    min-height: 100vh;
}


/* =========================================================
   BODY
   ========================================================= */

.intranet-login-body {

    display: flex;
    flex-direction: column;

    min-height: 100vh;

    background:
            radial-gradient(
                    circle at 10% 20%,
                    rgba(42, 169, 214, 0.08),
                    transparent 32%
            ),
            radial-gradient(
                    circle at 90% 80%,
                    rgba(245, 130, 32, 0.06),
                    transparent 30%
            ),
            var(--login-background);

    color: var(--login-text);
}


/* =========================================================
   HEADER
   ========================================================= */

.intranet-login-header {

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--login-border);

    box-shadow:
            0 3px 16px rgba(15, 23, 42, 0.035);
}


.intranet-header-container {

    width: min(1280px, calc(100% - 40px));

    min-height: 78px;

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

    gap: 20px;

    margin: 0 auto;
}


/* =========================================================
   MARCA
   ========================================================= */

.intranet-brand {

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

    gap: 11px;

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

    text-decoration: none;
}


.intranet-brand-logo {

    width: 46px;
    height: 46px;

    object-fit: contain;
}


.intranet-brand-text {

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.intranet-brand-text strong {

    font-size: 0.98rem;
    font-weight: 800;
}


.intranet-brand-text span {

    color: var(--login-muted);

    font-size: 0.66rem;
    font-weight: 500;
}


/* =========================================================
   VOLVER
   ========================================================= */

.back-web-button {

    min-height: 40px;

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

    gap: 8px;

    padding: 0 14px;

    border: 1px solid var(--login-border);
    border-radius: 10px;

    background: #ffffff;
    color: var(--cupotech-blue-dark);

    font-size: 0.74rem;
    font-weight: 700;

    text-decoration: none;

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


.back-web-button:hover {

    border-color: var(--cupotech-cyan);

    background: var(--cupotech-cyan-light);
    color: var(--cupotech-blue);
}


/* =========================================================
   MAIN
   ========================================================= */

.intranet-login-main {

    flex: 1;

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

    padding: 44px 24px;
}


/* =========================================================
   CARD
   ========================================================= */

.intranet-login-card {

    width: min(1080px, 100%);

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(420px, 0.95fr);

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;

    box-shadow: var(--login-shadow);
}


/* =========================================================
   VISUAL
   ========================================================= */

.intranet-login-visual {

    position: relative;

    min-height: 600px;

    overflow: hidden;

    background: var(--cupotech-blue-dark);
}


.intranet-login-image {

    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.intranet-visual-overlay {

    position: absolute;
    inset: 0;

    background:
            linear-gradient(
                    145deg,
                    rgba(7, 35, 84, 0.94) 0%,
                    rgba(11, 47, 107, 0.82) 48%,
                    rgba(20, 93, 160, 0.67) 100%
            );
}


.intranet-visual-content {

    position: relative;

    z-index: 2;

    min-height: 600px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 52px 48px;

    color: #ffffff;
}


.visual-icon {

    width: 50px;
    height: 50px;

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

    margin-bottom: 24px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.1);

    color: var(--cupotech-orange);

    font-size: 1.2rem;

    backdrop-filter: blur(8px);
}


.visual-eyebrow {

    margin-bottom: 9px;

    color: #8edff5;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.intranet-visual-content h1 {

    max-width: 450px;

    margin-bottom: 16px;

    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 800;

    line-height: 1.15;
}


.intranet-visual-content > p {

    max-width: 430px;

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

    font-size: 0.85rem;

    line-height: 1.65;
}


/* =========================================================
   ROLES
   ========================================================= */

.staff-roles {

    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 29px;
}


.staff-roles span {

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

    gap: 6px;

    padding: 7px 10px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

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

    color: #ffffff;

    font-size: 0.65rem;
    font-weight: 600;

    backdrop-filter: blur(5px);
}


.staff-roles i {

    color: #8edff5;
}


/* =========================================================
   MENSAJE SEGURIDAD
   ========================================================= */

.security-message {

    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 36px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.16);

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

    font-size: 0.68rem;
}


.security-message i {

    color: var(--cupotech-orange);
}


/* =========================================================
   FORM SECTION
   ========================================================= */

.intranet-login-form-section {

    display: flex;
    align-items: center;

    background: #ffffff;
}


.intranet-login-form-content {

    width: 100%;

    padding: 44px 46px;
}


/* =========================================================
   BADGE
   ========================================================= */

.staff-badge {

    width: fit-content;

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

    gap: 7px;

    margin-bottom: 18px;
    padding: 7px 11px;

    border-radius: 7px;

    background: var(--cupotech-orange-light);
    color: var(--cupotech-orange-dark);

    font-size: 0.66rem;
    font-weight: 800;

    letter-spacing: 0.065em;

    text-transform: uppercase;
}


/* =========================================================
   HEADING
   ========================================================= */

.login-heading {

    margin-bottom: 25px;
}


.login-heading > span {

    display: block;

    margin-bottom: 5px;

    color: var(--cupotech-cyan);

    font-size: 0.67rem;
    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.login-heading h2 {

    margin-bottom: 8px;

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

    font-size: 1.75rem;
    font-weight: 800;
}


.login-heading p {

    color: var(--login-muted);

    font-size: 0.76rem;

    line-height: 1.55;
}


/* =========================================================
   ALERTAS
   ========================================================= */

.login-alert {

    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 20px;
    padding: 12px 13px;

    border-radius: 10px;

    font-size: 0.72rem;
}


.login-alert i {

    margin-top: 2px;

    flex-shrink: 0;
}


.login-alert div {

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.login-alert strong {

    font-size: 0.7rem;
}


.login-alert-success {

    border: 1px solid #bbf7d0;

    background: #ecfdf3;
    color: #15803d;
}


.login-alert-error {

    border: 1px solid #fecaca;

    background: #fef2f2;
    color: #dc2626;
}


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

.intranet-login-form {

    width: 100%;
}


.intranet-form-group {

    margin-bottom: 18px;
}


.intranet-form-group label {

    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 0.72rem;
    font-weight: 700;
}


/* =========================================================
   INPUT
   ========================================================= */

.intranet-input-wrapper {

    position: relative;
}


.intranet-input-wrapper > i {

    position: absolute;

    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    color: var(--cupotech-cyan);

    font-size: 0.8rem;
}


.intranet-input-wrapper input {

    width: 100%;
    height: 46px;

    padding:
            0
            44px
            0
            39px;

    border: 1px solid var(--login-border);
    border-radius: 10px;

    background: #fbfdff;
    color: var(--login-text);

    font-size: 0.78rem;

    outline: none;

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


.intranet-input-wrapper input:focus {

    border-color: var(--cupotech-cyan);

    background: #ffffff;

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


.intranet-input-wrapper input::placeholder {

    color: #94a3b8;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.password-toggle {

    position: absolute;

    top: 50%;
    right: 8px;

    width: 34px;
    height: 34px;

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

    transform: translateY(-50%);

    border: none;
    border-radius: 8px;

    background: transparent;
    color: #94a3b8;

    cursor: pointer;
}


.password-toggle:hover {

    background: #f1f5f9;
    color: var(--cupotech-blue);
}


/* =========================================================
   INFORMACIÓN DE ACCESO
   ========================================================= */

.access-info {

    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin: 7px 0 20px;
    padding: 11px 12px;

    border: 1px solid #bae6fd;
    border-radius: 10px;

    background: #f0f9ff;
    color: #0369a1;
}


.access-info i {

    margin-top: 2px;

    flex-shrink: 0;
}


.access-info p {

    font-size: 0.66rem;

    line-height: 1.5;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.intranet-login-button {

    width: 100%;
    min-height: 47px;

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

    gap: 9px;

    border: 1px solid var(--cupotech-blue);
    border-radius: 10px;

    background:
            linear-gradient(
                    135deg,
                    var(--cupotech-blue-dark),
                    var(--cupotech-blue)
            );

    color: #ffffff;

    font-size: 0.78rem;
    font-weight: 800;

    cursor: pointer;

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


.intranet-login-button:hover {

    transform: translateY(-1px);

    box-shadow:
            0 8px 22px rgba(20, 93, 160, 0.2);
}


.intranet-login-button:disabled {

    opacity: 0.7;

    cursor: wait;

    transform: none;
}


/* =========================================================
   AYUDA
   ========================================================= */

.intranet-login-help {

    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 25px;
    padding-top: 21px;

    border-top: 1px solid var(--login-border);
}


.help-icon {

    width: 34px;
    height: 34px;

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

    flex-shrink: 0;

    border-radius: 9px;

    background: var(--cupotech-cyan-light);
    color: var(--cupotech-blue);
}


.intranet-login-help strong {

    display: block;

    margin-bottom: 3px;

    color: #334155;

    font-size: 0.7rem;
}


.intranet-login-help p {

    color: var(--login-muted);

    font-size: 0.65rem;

    line-height: 1.45;
}


/* =========================================================
   SEGURIDAD
   ========================================================= */

.login-security-footer {

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

    gap: 6px;

    margin-top: 20px;

    color: #94a3b8;

    font-size: 0.61rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.intranet-login-footer {

    border-top: 1px solid var(--login-border);

    background: #ffffff;
}


.intranet-footer-content {

    width: min(1280px, calc(100% - 40px));

    min-height: 62px;

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

    gap: 20px;

    margin: 0 auto;
}


.intranet-footer-content > div {

    display: flex;
    align-items: center;

    gap: 7px;

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

    font-size: 0.67rem;
    font-weight: 700;
}


.intranet-footer-content img {

    width: 25px;
    height: 25px;

    object-fit: contain;
}


.intranet-footer-content p {

    color: #94a3b8;

    font-size: 0.61rem;
}


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

@media (max-width: 900px) {

    .intranet-login-card {

        grid-template-columns: 1fr;
    }


    .intranet-login-visual {

        min-height: 360px;
    }


    .intranet-visual-content {

        min-height: 360px;

        padding: 38px;
    }
}


@media (max-width: 600px) {

    .intranet-header-container {

        width: min(100% - 28px, 1280px);

        min-height: 70px;
    }


    .intranet-brand-text span {

        display: none;
    }


    .back-web-button {

        font-size: 0;
    }


    .back-web-button i {

        font-size: 0.85rem;
    }


    .intranet-login-main {

        padding: 22px 14px;
    }


    .intranet-login-card {

        border-radius: 16px;
    }


    .intranet-login-visual {

        display: none;
    }


    .intranet-login-form-content {

        padding: 32px 22px;
    }


    .login-heading h2 {

        font-size: 1.5rem;
    }


    .intranet-footer-content {

        width: min(100% - 28px, 1280px);

        flex-direction: column;
        justify-content: center;

        padding: 13px 0;

        text-align: center;
    }
}