/* ==========================================================================
   VENTAMAX - LOGIN V0.2.2
   Inspirado en la composición limpia utilizada en EducaMax.
   ========================================================================== */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    min-height: 100dvh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
}

/*
 * Fondo suave.
 * Se mantienen las formas abstractas muy discretas,
 * sin ninguna línea superior sobre la tarjeta.
 */
body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: .09;
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: 560px;
    height: 560px;
    background: #198fff;
    top: -250px;
    left: -250px;
}

body::after {
    width: 480px;
    height: 480px;
    background: #7a73ff;
    bottom: -240px;
    right: -220px;
}

.theme-morning {
    background: linear-gradient(135deg, #edf5ff 0%, #e8f1ff 100%);
}

.theme-afternoon {
    background: linear-gradient(135deg, #f6f9fc, #eef2ff);
}

.theme-evening {
    background: linear-gradient(135deg, #f9f5ff, #eef2ff);
}

.theme-night {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.login-wrapper {
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 38px 40px 36px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(49, 72, 112, .10);
    animation: vmFadeIn .45s ease-in-out;
}

/*
 * Área del logo.
 * El logo sustituye el bloque "V" y el texto separado de VentaMax.
 */
.login-brand-area {
    margin-bottom: 26px;
}

.login-logo {
    display: block;
    width: 100%;
    max-width: 285px;
    height: auto;
    margin: 0 auto 4px;
    object-fit: contain;
}

/*
 * Inputs similares al login de EducaMax.
 */
.custom-input {
    min-height: 58px;
    border-radius: 11px;
    border: 1px solid #dce4ee;
    background: #fff;
}

.custom-input:focus {
    border-color: #198fff;
    box-shadow: 0 0 0 3px rgba(25, 143, 255, .12);
}

.form-floating > label {
    color: #8291a8;
}

.toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6c7b8f;
    cursor: pointer;
    z-index: 5;
    padding: 6px;
}

.btn-fintech {
    min-height: 50px;
    background: #198fff;
    color: #fff;
    border-radius: 10px;
    border: 0;
    padding: 11px 18px;
    font-weight: 600;
    transition: background-color .2s ease, transform .2s ease;
}

.btn-fintech:hover,
.btn-fintech:focus {
    background: #0f7fe9;
    color: #fff;
    transform: translateY(-1px);
}

.link-minimal {
    text-decoration: none;
    color: #198fff;
    cursor: pointer;
}

.link-minimal:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 23px;
    padding-top: 0;
    color: #66758c;
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
}

.login-footer a {
    color: #198fff;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.link-whatsapp,
.link-whatsapp:visited,
.link-whatsapp:hover,
.link-whatsapp:active {
    color: inherit;
    text-decoration: none;
}

.theme-night .login-card {
    background: #1e293b;
    border: 1px solid #334155;
    color: #fff;
}

.theme-night .custom-input {
    background: #0f172a;
    border-color: #334155;
    color: #fff;
}

@keyframes vmFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .login-card {
        max-width: 390px;
        padding: 28px 26px 30px;
        border-radius: 18px;
    }

    .login-logo {
        max-width: 255px;
    }
}


/* El nombre del desarrollador conserva el enlace funcional de EducaMax,
   pero visualmente se presenta como texto gris normal. */
.login-footer .link-whatsapp,
.login-footer .link-whatsapp:visited,
.login-footer .link-whatsapp:hover,
.login-footer .link-whatsapp:active {
    color: #7b8798 !important;
    text-decoration: none !important;
    cursor: default;
}
