/* ==========================================================================
   ARCHIVO: wwwroot/css/Login_v2.css
   Nota 1 (11/11/2026) - LGC: Login de la version 2.0 (reemplaza a Login.css en Views/Account/Login.cshtml).
     - Fondo solo con CSS: degradado azul marino, reticula tenue y dos luces difusas que se mueven despacio
       (ya no se carga login_bkgnd(1).png, 780 KB, que se deformaba con background-repeat: round).
     - Pantalla dividida: a la izquierda que es QualiHire y que hace; a la derecha la tarjeta de acceso.
       En pantallas angostas solo se ve la tarjeta.
     - Cubre toda la ventana (position: fixed) por encima del footer del _Layout.
     - Logos: Remote Team Solutions en la esquina superior izquierda (Logo-RTS-Reverse.png) y QualiHire en el panel de la
       marca (QualiHire_Logo_dark.svg); en pantallas angostas el icono de QualiHire va en la tarjeta.
   ========================================================================== */

/* Colores de la version 2.0 */
:root {
    --qh-navy-900: #071426;
    --qh-navy-800: #0b2447;
    --qh-navy-700: #0f3a6b;
    --qh-blue: #2f7cf6;
    --qh-blue-dark: #1d4ed8;
    --qh-sky: #0ea5e9;
    --qh-green: #8fce00;
    --qh-text-soft: #b8c6dc;
    --qh-text-dim: #6f84a3;
}

/* Contenedor de toda la pantalla */
.qh-login {
    position: fixed;
    inset: 0;
    z-index: 1030;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    padding: 32px 24px 56px;
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(1200px 600px at 15% 20%, var(--qh-blue-dark) 0%, transparent 60%),
        radial-gradient(900px 500px at 90% 90%, var(--qh-sky) 0%, transparent 55%),
        linear-gradient(135deg, var(--qh-navy-900) 0%, var(--qh-navy-800) 55%, var(--qh-navy-700) 100%);
}

    /* Reticula tenue, se desvanece hacia los bordes */
    .qh-login::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background-image:
            linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
        background-size: 44px 44px;
        -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
        mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    }

/* Luces difusas */
.qh-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    pointer-events: none;
    animation: qh-float 14s ease-in-out infinite;
}

.qh-blob-1 {
    width: 360px;
    height: 360px;
    background: var(--qh-blue);
    left: -80px;
    bottom: -120px;
}

.qh-blob-2 {
    width: 280px;
    height: 280px;
    background: var(--qh-green);
    right: 8%;
    top: -120px;
    opacity: .22;
    animation-delay: -5s;
}

@keyframes qh-float {
    50% {
        transform: translate(30px, -20px) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qh-blob {
        animation: none;
    }
}

/* ---------- Lado izquierdo: marca ---------- */
.qh-brand {
    position: relative;
    max-width: 440px;
    color: #fff;
}

.qh-brand-logo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
}

    /* Logo de QualiHire (version para fondo oscuro) */
    .qh-brand-logo img {
        height: 74px;
        width: auto;
    }

/* Logo de Remote Team Solutions en la esquina superior izquierda */
.qh-company {
    position: fixed;
    top: 24px;
    left: 28px;
    height: 34px;
    width: auto;
    opacity: .95;
}

/* Icono de QualiHire en la tarjeta: solo en pantallas angostas (sin el panel de la marca) */
.qh-card-icon {
    display: none;
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
}

.qh-version {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--qh-green), #22c55e);
    color: #062012;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.qh-brand h2 {
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
    margin: 0;
}

    .qh-brand h2 em {
        font-style: normal;
        background: linear-gradient(90deg, #60a5fa, var(--qh-green));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.qh-brand p {
    color: var(--qh-text-soft);
    font-size: 14px;
    line-height: 1.6;
    margin: 14px 0 22px;
}

.qh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qh-chip {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #dbe6f6;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
}

    .qh-chip i {
        color: var(--qh-green);
        margin-right: 6px;
    }

/* ---------- Lado derecho: tarjeta de acceso ---------- */
.qh-card {
    position: relative;
    width: 390px;
    max-width: 100%;
    padding: 34px 30px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #fff;
}

    .qh-card h6 {
        color: var(--qh-text-soft);
        font-size: 13px;
        font-weight: 400;
        text-align: center;
        margin-bottom: 2px;
    }

    .qh-card h3 {
        font-size: 26px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 18px;
    }

    .qh-card label {
        display: block;
        margin: 14px 0 6px;
        color: #dbe6f6;
        font-size: 13px;
        font-weight: 500;
    }

    .qh-card .form-control {
        height: 46px;
        border-radius: 10px;
        background: rgba(255, 255, 255, .07);
        border: 1px solid rgba(255, 255, 255, .14);
        color: #fff;
        font-size: 14px;
        padding: 0 42px 0 14px;
    }

        .qh-card .form-control::placeholder {
            color: #9fb0c8;
        }

        .qh-card .form-control:focus {
            background: rgba(255, 255, 255, .1);
            border-color: #60a5fa;
            box-shadow: 0 0 0 3px rgba(47, 124, 246, .3);
            color: #fff;
        }

    /* Autocompletado del navegador: mantener los colores oscuros */
    .qh-card input:-webkit-autofill {
        -webkit-text-fill-color: #fff;
        -webkit-box-shadow: 0 0 0 1000px #17325a inset;
        transition: background-color 9999s ease-in-out 0s;
    }

    .qh-card .password-container {
        position: relative;
    }

    .qh-card .toggle-password {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #9fb0c8;
        cursor: pointer;
    }

    .qh-card .text-danger {
        font-size: 12px;
        color: #fca5a5 !important;
    }

.qh-btn-login {
    width: 100%;
    height: 48px;
    margin-top: 26px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--qh-blue), var(--qh-blue-dark));
    box-shadow: 0 8px 20px rgba(47, 124, 246, .4);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .qh-btn-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(47, 124, 246, .5);
    }

    .qh-btn-login:disabled {
        opacity: .7;
        transform: none;
    }

.qh-forgot {
    text-align: center;
    margin-top: 18px;
    font-size: 12.5px;
}

    .qh-forgot a {
        color: #93c5fd;
        text-decoration: none;
    }

        .qh-forgot a:hover {
            text-decoration: underline;
        }

/* Pie de la pantalla */
.qh-login-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    text-align: center;
    color: var(--qh-text-dim);
    font-size: 11px;
    pointer-events: none;
}

/* Toast de error y overlay de "Authenticating" por encima de la pantalla */
#toastPlacement {
    position: fixed;
    z-index: 1060;
}

#loading-overlay {
    z-index: 1070;
}

/* Pantallas angostas: solo la tarjeta */
@media (max-width: 900px) {
    .qh-brand {
        display: none;
    }

    .qh-card-icon {
        display: block;
    }

    .qh-company {
        position: static;
        display: block;
        margin: 0 auto 18px;
        height: 28px;
    }

    .qh-login {
        flex-direction: column;
    }

    .qh-login {
        gap: 0;
    }
}
