/* =========================================================
   LOGIN CLIENTE
   CUPOTECH SOLUTIONS
========================================================= */

:root {
    --blue-dark: #06386c;
    --blue: #0877b8;
    --cyan: #00a5d9;
    --cyan-light: #e8f7fd;

    --orange: #f28c28;

    --text: #163d5b;
    --muted: #748b9c;

    --background: #f2f8fc;
    --white: #ffffff;

    --border: #d8e6f0;
    --border-light: #ebf1f5;

    --success: #157d5c;
    --success-bg: #e9f8f1;

    --danger: #bd4545;
    --danger-bg: #fff0f0;

    --shadow:
            0 24px 65px rgba(18, 72, 108, 0.14);
}


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

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;

    min-height: 100%;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: "Inter", sans-serif;

    color: var(--text);

    background: var(--background);
}

button,
input,
a {
    font: inherit;
}


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

.portal-login-header {
    min-height: 76px;

    display: flex;
    align-items: center;

    position: relative;

    z-index: 20;

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

    border-top: 3px solid var(--cyan);
    border-bottom: 1px solid var(--border);
}

.portal-login-header-inner {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

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

    gap: 20px;
}


/* =========================================================
   BRAND
========================================================= */

.portal-brand {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--blue-dark);

    text-decoration: none;
}

.portal-brand img {
    width: 45px;
    height: 45px;

    object-fit: contain;
}

.portal-brand-text {
    display: flex;
    flex-direction: column;
}

.portal-brand strong {
    font-size: 14px;
    font-weight: 800;
}

.portal-brand span {
    margin-top: 2px;

    color: #748c9e;

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

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


/* =========================================================
   IR A LA WEB
========================================================= */

.portal-web-link {
    min-height: 39px;

    padding: 0 14px;

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

    gap: 7px;

    color: #0878ad;

    background: #edf8fd;

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

    text-decoration: none;

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

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

.portal-web-link:hover {
    color: white;

    background: var(--blue);

    border-color: var(--blue);

    transform: translateY(-1px);
}


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

.portal-login-main {
    position: relative;

    flex: 1;

    min-height: 710px;

    padding: 58px 20px 48px;

    display: flex;
    justify-content: center;

    overflow: hidden;

    background:
            linear-gradient(
                    180deg,
                    #eef8fd 0%,
                    #f8fbfd 48%,
                    #f2f8fc 100%
            );
}


/* =========================================================
   LOGO MARCA DE AGUA
========================================================= */

.background-logo {
    position: absolute;

    inset: 0;

    z-index: 1;

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

    pointer-events: none;
}

.background-logo img {
    width: min(560px, 58vw);
    height: auto;

    object-fit: contain;

    opacity: 0.045;

    transform:
            translateY(35px)
            rotate(-7deg);

    filter: grayscale(15%);
}


/* =========================================================
   DECORACIONES
========================================================= */

.background-orb {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.background-orb-left {
    width: 500px;
    height: 500px;

    left: -270px;
    top: 80px;

    background:
            radial-gradient(
                    circle,
                    rgba(0, 165, 217, 0.10) 0%,
                    rgba(0, 165, 217, 0) 70%
            );
}

.background-orb-right {
    width: 480px;
    height: 480px;

    right: -260px;
    bottom: -130px;

    background:
            radial-gradient(
                    circle,
                    rgba(242, 140, 40, 0.07) 0%,
                    rgba(242, 140, 40, 0) 70%
            );
}


/* =========================================================
   CONTENIDO
========================================================= */

.portal-login-content {
    width: min(780px, 100%);

    position: relative;

    z-index: 5;
}


/* =========================================================
   PRESENTACIÓN
========================================================= */

.portal-welcome {
    max-width: 680px;

    margin: 0 auto 28px;

    text-align: center;
}

.portal-welcome h1 {
    margin: 0;

    color: var(--blue-dark);

    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;

    line-height: 1.15;
}

.portal-welcome h1 span {
    color: #0798cf;
}

.portal-welcome p {
    max-width: 570px;

    margin: 12px auto 0;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.65;
}


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

.login-card {
    width: min(470px, 100%);

    margin: 0 auto;

    padding: 34px 38px 30px;

    position: relative;

    overflow: hidden;

    border-radius: 22px;

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

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

    box-shadow: var(--shadow);

    backdrop-filter: blur(10px);
}

.login-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 42px;
    right: 42px;

    height: 3px;

    border-radius: 0 0 10px 10px;

    background:
            linear-gradient(
                    90deg,
                    var(--orange) 0%,
                    var(--cyan) 100%
            );
}


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

.login-card-icon {
    width: 49px;
    height: 49px;

    margin: 0 auto 13px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: #0780b9;

    background: var(--cyan-light);

    font-size: 17px;
}

.login-card-heading {
    text-align: center;
}

.login-card-heading > span {
    display: block;

    margin-bottom: 5px;

    color: #0782bb;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.11em;
}

.login-card-heading h2 {
    margin: 0;

    color: var(--blue-dark);

    font-size: 25px;
    font-weight: 800;
}

.login-card-heading p {
    margin: 7px 0 0;

    color: var(--muted);

    font-size: 10px;
}


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

.login-alert {
    margin-top: 18px;

    padding: 11px 12px;

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

    gap: 9px;

    border-radius: 10px;

    font-size: 9px;

    line-height: 1.5;
}

.login-alert > i {
    margin-top: 2px;
}

.login-alert > div {
    display: flex;
    flex-direction: column;
}

.login-alert strong {
    margin-bottom: 2px;
}

.login-alert-success {
    color: var(--success);

    background: var(--success-bg);

    border: 1px solid #ccecdf;
}

.login-alert-error {
    color: var(--danger);

    background: var(--danger-bg);

    border: 1px solid #f0cece;
}


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

.login-form {
    margin-top: 24px;
}

.form-field {
    margin-bottom: 17px;
}

.form-field label {
    display: block;

    margin-bottom: 6px;

    color: #426178;

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


/* =========================================================
   CONTRASEÑA LABEL
========================================================= */

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.password-label a {
    margin-bottom: 6px;

    color: #0780b8;

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

    text-decoration: none;
}

.password-label a:hover {
    text-decoration: underline;
}


/* =========================================================
   INPUTS
========================================================= */

.form-input {
    position: relative;

    height: 47px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-radius: 10px;

    background: #fbfdff;

    border: 1px solid #d4e3ed;

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

.form-input:focus-within {
    background: white;

    border-color: #53b7df;

    box-shadow:
            0 0 0 3px rgba(0, 163, 215, 0.08);
}

.form-input > i {
    position: absolute;

    left: 14px;

    color: #859aa9;

    font-size: 11px;
}

.form-input input {
    width: 100%;
    height: 100%;

    padding: 0 14px 0 39px;

    color: #294f69;

    background: transparent;

    border: 0;
    outline: 0;

    font-size: 10px;
}

.form-input input::placeholder {
    color: #a7b5c0;
}

.password-field input {
    padding-right: 46px;
}


/* =========================================================
   MOSTRAR CONTRASEÑA
========================================================= */

.password-toggle {
    position: absolute;

    right: 7px;

    width: 32px;
    height: 32px;

    padding: 0;

    display: grid;
    place-items: center;

    color: #8197a6;

    background: transparent;

    border: 0;
    border-radius: 8px;

    cursor: pointer;

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

.password-toggle:hover {
    color: var(--blue);

    background: #edf7fb;
}


/* =========================================================
   VALIDACIÓN
========================================================= */

.validation-message {
    min-height: 18px;

    margin-top: -7px;

    color: var(--danger);

    font-size: 8px;
    font-weight: 600;
}


/* =========================================================
   BOTÓN LOGIN
========================================================= */

.login-button {
    width: 100%;

    min-height: 47px;

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

    gap: 9px;

    color: white;

    background:
            linear-gradient(
                    135deg,
                    #0867a7 0%,
                    #00a3d8 100%
            );

    border: 0;
    border-radius: 10px;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
            0 10px 22px rgba(0, 133, 189, 0.20);

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

.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
            0 14px 28px rgba(0, 133, 189, 0.27);
}

.login-button:active {
    transform: translateY(0);
}


/* =========================================================
   CREAR CUENTA
========================================================= */

.register-access {
    margin-top: 20px;

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

    gap: 5px;

    font-size: 9px;
}

.register-access span {
    color: var(--muted);
}

.register-access a {
    color: #0879af;

    font-weight: 800;

    text-decoration: none;
}

.register-access a:hover {
    text-decoration: underline;
}


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

.security-message {
    margin-top: 18px;

    padding-top: 15px;

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

    gap: 6px;

    color: #8496a3;

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

    font-size: 8px;
}


/* =========================================================
   ACCESO INTRANET
========================================================= */

.staff-entry {
    margin-top: 24px;

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

    gap: 9px;

    color: #8395a3;

    font-size: 8px;
}

.staff-entry > span {
    white-space: nowrap;
}

.staff-entry a {
    min-height: 33px;

    padding: 0 11px;

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

    gap: 6px;

    color: #536d80;

    background: rgba(235, 242, 246, 0.88);

    border: 1px solid #e0e9ef;
    border-radius: 8px;

    text-decoration: none;

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

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

.staff-entry a:hover {
    color: var(--blue);

    background: #e7f5fb;

    border-color: #cbe7f3;
}


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

.portal-login-footer {
    min-height: 58px;

    display: flex;
    align-items: center;

    position: relative;

    z-index: 20;

    background: white;

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

.portal-login-footer-inner {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

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

    gap: 20px;

    color: #8194a2;

    font-size: 8px;
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 7px;
}

.footer-brand img {
    width: 25px;
    height: 25px;

    object-fit: contain;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 760px) {

    .portal-login-main {
        min-height: auto;

        padding-top: 45px;
    }

    .background-logo img {
        width: min(500px, 80vw);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 540px) {

    .portal-login-header-inner {
        width: calc(100% - 24px);
    }

    .portal-brand strong {
        font-size: 12px;
    }

    .portal-brand img {
        width: 40px;
        height: 40px;
    }

    .portal-web-link {
        width: 39px;

        padding: 0;

        justify-content: center;
    }

    .portal-web-link span {
        display: none;
    }

    .portal-login-main {
        padding: 35px 12px 32px;
    }

    .portal-welcome {
        margin-bottom: 22px;
    }

    .portal-welcome h1 {
        font-size: 27px;
    }

    .portal-welcome p {
        font-size: 10px;
    }

    .login-card {
        padding:
                29px
                22px
                26px;
    }

    .staff-entry {
        flex-direction: column;

        gap: 8px;
    }

    .staff-entry > span {
        white-space: normal;

        text-align: center;
    }

    .portal-login-footer-inner {
        width: calc(100% - 24px);

        padding: 13px 0;

        flex-direction: column;

        justify-content: center;

        gap: 8px;
    }

    .background-logo img {
        width: 90vw;

        opacity: 0.035;
    }
}

/* =========================================================
   SEPARADOR DE MÉTODOS DE ACCESO
========================================================= */

.login-alternative-divider {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 14px;

    margin: 22px 0 18px;

    color: #8294a6;
}


.login-alternative-divider::before,
.login-alternative-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #dce6ef;
}


.login-alternative-divider span {
    flex-shrink: 0;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   ACCESO CON GOOGLE
========================================================= */

.google-login-section {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}


.google-login-button-wrapper {
    width: 100%;
    min-height: 44px;

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

    overflow: hidden;
}


.google-login-button-wrapper .g_id_signin {
    max-width: 100%;
}


.google-login-button-wrapper iframe {
    max-width: 100% !important;
}


.google-login-information {
    max-width: 340px;

    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;

    margin: 0;

    color: #71869b;

    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}


.google-login-information i {
    margin-top: 2px;

    color: #18864b;
}


/* =========================================================
   AJUSTE DE REGISTRO
========================================================= */

.google-login-section + .register-access {
    margin-top: 20px;
}


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

@media (max-width: 480px) {

    .login-alternative-divider {
        margin-top: 18px;
        margin-bottom: 16px;
    }


    .google-login-button-wrapper {
        transform: scale(0.94);
        transform-origin: center;
    }


    .google-login-information {
        max-width: 290px;

        font-size: 10px;
    }
}