/* =========================================================
   SISAPCONT
   LOGIN
   ========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;

    background: var(--color-background);
}


/* =========================================================
   PANEL INSTITUCIONAL
   ========================================================= */

.login-brand {
    position: relative;

    width: 55%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 48px 64px;

    overflow: hidden;

    color: #FFFFFF;

    background:
        linear-gradient(
            145deg,
            var(--color-primary-950) 0%,
            var(--color-primary-900) 42%,
            var(--color-primary-700) 100%
        );
}


/* Elementos decorativos */

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

    position: absolute;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    top: -200px;
    right: -180px;
}

.login-brand::after {
    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    border: 80px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;

    bottom: -170px;
    left: -100px;
}


/* =========================================================
   LOGOTIPO
   ========================================================= */

.brand-header {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 14px;
}

.brand-logo {
    width: 52px;
    height: 52px;

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

    border-radius: 14px;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;

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

    border: 1px solid rgba(255, 255, 255, 0.20);

    backdrop-filter: blur(8px);
}

.brand-name {
    display: flex;
    flex-direction: column;
}

.brand-name strong {
    font-size: 20px;
    font-weight: 700;

    letter-spacing: 0.6px;
}

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

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

    color: rgba(255, 255, 255, 0.66);
}


/* =========================================================
   MENSAJE PRINCIPAL
   ========================================================= */

.brand-content {
    position: relative;
    z-index: 2;

    max-width: 620px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 26px;

    padding: 8px 13px;

    border: 1px solid rgba(255, 255, 255, 0.13);

    border-radius: 50px;

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

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

    letter-spacing: 0.4px;

    color: rgba(255, 255, 255, 0.83);
}

.brand-badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #50D3B7;

    box-shadow:
        0 0 0 4px rgba(80, 211, 183, 0.13);
}

.brand-content h1 {
    margin: 0;

    max-width: 560px;

    font-size: clamp(38px, 4vw, 58px);

    line-height: 1.08;

    font-weight: 650;

    letter-spacing: -1.8px;
}

.brand-content h1 span {
    color: #A9D8EC;
}

.brand-content p {
    max-width: 540px;

    margin: 24px 0 0;

    font-size: 17px;
    line-height: 1.75;

    color: rgba(255, 255, 255, 0.68);
}


/* =========================================================
   BENEFICIOS / CARACTERÍSTICAS
   ========================================================= */

.brand-features {
    display: flex;
    flex-wrap: wrap;

    gap: 20px;

    margin-top: 36px;
}

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

    gap: 9px;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.70);
}

.feature-check {
    width: 21px;
    height: 21px;

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

    border-radius: 50%;

    background: rgba(80, 211, 183, 0.12);

    color: #6FE0C9;
}


/* =========================================================
   PIE PANEL INSTITUCIONAL
   ========================================================= */

.brand-footer {
    position: relative;
    z-index: 2;

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

    gap: 20px;

    font-size: 12px;

    color: rgba(255, 255, 255, 0.42);
}

/* =========================================================
   ALERTA LOGIN
   ========================================================= */

.login-alert {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 24px;

    padding: 13px 15px;

    border: 1px solid rgba(198, 60, 60, 0.20);

    border-radius: var(--radius-md);

    background: rgba(198, 60, 60, 0.06);

    color: var(--color-danger);
}

.login-alert svg {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin-top: 1px;
}

.login-alert span {
    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   ZONA DEL FORMULARIO
   ========================================================= */

.login-access {
    width: 45%;
    min-height: 100vh;

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

    padding: 50px;

    background: var(--color-surface);
}

.login-container {
    width: 100%;
    max-width: 430px;
}


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

.login-header {
    margin-bottom: 38px;
}

.login-eyebrow {
    margin-bottom: 12px;

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

    letter-spacing: 1.6px;

    text-transform: uppercase;

    color: var(--color-primary-600);
}

.login-header h2 {
    margin: 0;

    font-size: 32px;

    line-height: 1.2;

    letter-spacing: -0.8px;

    color: var(--color-primary-900);
}

.login-header p {
    margin: 11px 0 0;

    font-size: 14px;

    line-height: 1.65;

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


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

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;

    margin-bottom: 8px;

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

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

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;

    left: 15px;

    width: 19px;
    height: 19px;

    color: var(--color-text-muted);

    pointer-events: none;

    transition: color var(--transition-fast);
}

.form-control {
    width: 100%;
    height: 52px;

    padding:
        0
        46px
        0
        46px;

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

    border-radius: var(--radius-md);

    outline: none;

    background: var(--color-surface);

    color: var(--color-text);

    font-size: 14px;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.form-control::placeholder {
    color: #AAB4C1;
}

.form-control:hover {
    border-color: #C4CFDA;
}

.form-control:focus {
    border-color: var(--color-primary-500);

    box-shadow:
        0 0 0 4px rgba(36, 116, 166, 0.10);
}

.input-wrapper:focus-within .input-icon {
    color: var(--color-primary-500);
}


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

.password-toggle {
    position: absolute;

    right: 10px;

    width: 36px;
    height: 36px;

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

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: var(--color-text-muted);

    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

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

    background: var(--color-background);
}

.password-toggle svg {
    width: 19px;
    height: 19px;
}


/* =========================================================
   OPCIONES
   ========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: -3px;
    margin-bottom: 26px;
}

.remember-option {
    display: flex;
    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-size: 13px;

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

.remember-option input {
    width: 16px;
    height: 16px;

    accent-color: var(--color-primary-700);
}


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

.btn-login {
    width: 100%;
    height: 53px;

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

    gap: 9px;

    border: none;

    border-radius: var(--radius-md);

    background:
        linear-gradient(
            135deg,
            var(--color-primary-800),
            var(--color-primary-600)
        );

    color: #FFFFFF;

    font-size: 14px;
    font-weight: 650;

    letter-spacing: 0.1px;

    box-shadow:
        0 8px 20px rgba(16, 53, 84, 0.16);

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast);
}

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

    box-shadow:
        0 12px 25px rgba(16, 53, 84, 0.22);

    filter: brightness(1.04);
}

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

.btn-login svg {
    width: 18px;
    height: 18px;
}


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

.security-message {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 27px;

    padding: 15px 16px;

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

    border-radius: var(--radius-md);

    background: var(--color-surface-secondary);
}

.security-message svg {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin-top: 1px;

    color: var(--color-accent);
}

.security-message p {
    margin: 0;

    font-size: 12px;

    line-height: 1.55;

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


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

.login-footer {
    margin-top: 34px;

    text-align: center;

    font-size: 11px;

    line-height: 1.6;

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


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

@media (max-width: 1050px) {

    .login-brand {
        width: 48%;

        padding: 40px;
    }

    .login-access {
        width: 52%;

        padding: 40px;
    }

    .brand-content h1 {
        font-size: 42px;
    }
}


@media (max-width: 820px) {

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

    .login-brand {
        width: 100%;
        min-height: auto;

        padding: 28px 32px 36px;
    }

    .brand-content {
        margin-top: 55px;
    }

    .brand-content h1 {
        max-width: 600px;

        font-size: 40px;
    }

    .brand-content p {
        font-size: 15px;
    }

    .brand-features {
        margin-top: 26px;
    }

    .brand-footer {
        display: none;
    }

    .login-access {
        width: 100%;
        min-height: auto;

        padding: 48px 28px 60px;
    }
}


@media (max-width: 520px) {

    .login-brand {
        padding: 22px 20px 28px;
    }

    .brand-header {
        gap: 11px;
    }

    .brand-logo {
        width: 45px;
        height: 45px;

        border-radius: 12px;

        font-size: 16px;
    }

    .brand-name strong {
        font-size: 17px;
    }

    .brand-content {
        margin-top: 40px;
    }

    .brand-badge {
        display: none;
    }

    .brand-content h1 {
        font-size: 32px;

        letter-spacing: -1px;
    }

    .brand-content p {
        margin-top: 16px;

        font-size: 14px;
    }

    .brand-features {
        display: none;
    }

    .login-access {
        padding: 38px 20px 50px;
    }

    .login-header {
        margin-bottom: 30px;
    }

    .login-header h2 {
        font-size: 27px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }
}

/* Logotipo Consultoría Vitza */

.brand-logo {
    width: 220px;
    height: 220px;
    margin: 0 auto 15px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Encabezado del login */

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.login-brand h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
}

.login-brand p {
    margin: 0;
    font-size: 15px;
}

/* Adaptación a celulares */

@media (max-width: 520px) {
    .brand-logo {
        width: 170px;
        height: 170px;
    }

    .login-brand h1 {
        font-size: 26px;
    }

    .login-brand p {
        font-size: 13px;
    }
}

/* ==========================================
   UBICACION GOOGLE MAPS
   ========================================== */

.brand-contact-location {
    margin: 8px 0;
}

.brand-contact-location a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.brand-contact-location svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.brand-contact-location a:hover {
    opacity: 0.75;
    text-decoration: underline;
}