﻿:root {
    --primary-blue: #005eb8;
    --primary-blue-hover: #004f9e;
    --dark-blue: #12355b;
    --text-main: #25364a;
    --text-muted: #5f6b7a;
    --border-color: #d9e2ec;
    --background-soft: #f4f7fb;
    --white: #ffffff;
}

html,
body {
    height: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Source Sans Pro", Arial, sans-serif;
    background: var(--background-soft);
    color: var(--text-main);
}

    body.login-page {
        min-height: 100vh;
        display: block;
        background: var(--background-soft);
    }

.login-shell {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
    background: #eef4fa;
}

.login-visual {
    flex: 1 1 auto;
    position: relative;
    min-width: 0;
    background: url("../../dist/img/fondo.png") no-repeat center center;
    background-size: cover;
}

    .login-visual::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(10, 38, 71, 0.28);
    }

.login-visual-content {
    position: absolute;
    left: 54px;
    bottom: 48px;
    max-width: 520px;
    color: #ffffff;
    z-index: 2;
}

.login-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.login-visual-title {
    margin: 0 0 10px 0;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.login-visual-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
}

.login-panel {
    width: 470px;
    flex: 0 0 470px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(244, 247, 251, 0.98);
    box-shadow: -16px 0 40px rgba(18, 53, 91, 0.12);
    z-index: 3;
}

.login-card {
    width: 100%;
    max-width: 390px;
    background: var(--white);
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(18, 53, 91, 0.15);
    overflow: hidden;
}

.login-card-header {
    padding: 28px 30px 18px 30px;
    text-align: center;
    border-bottom: 1px solid #eef2f7;
}

.login-logo {
    display: block;
    max-width: 205px;
    max-height: 88px;
    width: auto;
    height: auto;
    margin: 0 auto 16px auto;
    object-fit: contain;
}

.login-title {
    margin: 0;
    color: var(--dark-blue);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.login-subtitle {
    margin: 7px 0 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.35;
}

.login-card-body {
    padding: 24px 30px 22px 30px;
}

.form-group-login {
    margin-bottom: 15px;
}

.login-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .login-input-group:focus-within {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.12);
        background: #ffffff;
    }

.login-input-icon {
    width: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    background: #f8fafc;
    border-right: 1px solid #edf1f5;
    font-size: 15px;
}

.login-input-group .form-control {
    height: 48px;
    min-height: 48px;
    border: 0;
    box-shadow: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 400;
    padding: 10px 13px;
    background: #ffffff;
}

    .login-input-group .form-control:focus {
        border: 0;
        box-shadow: none;
        background: #ffffff;
    }

.login-input-group select.form-control {
    cursor: pointer;
    padding-right: 12px;
}

.password-control .form-control {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #7a8796;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: color 0.18s ease, background-color 0.18s ease;
}

    .toggle-password:hover {
        color: var(--primary-blue);
        background: #f4f8fc;
    }

.login-alert {
    margin: 2px 0 15px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.35;
}

    .login-alert .close {
        line-height: 0.85;
        opacity: 0.65;
    }

.forgot-password {
    margin-top: 13px;
    text-align: right;
}

    .forgot-password a {
        color: var(--primary-blue);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

        .forgot-password a:hover {
            color: var(--primary-blue-hover);
            text-decoration: underline;
        }

.login-footer {
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid #edf1f5;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

    .login-footer strong {
        color: var(--dark-blue);
        font-weight: 700;
    }

@media (max-width: 991.98px) {
    html,
    body {
        overflow: auto;
    }

    .login-shell {
        min-height: 100vh;
        height: auto;
        display: block;
        background: url("../../dist/img/fondo.png") no-repeat center center;
        background-size: cover;
        padding: 22px;
    }

        .login-shell::before {
            content: "";
            position: fixed;
            inset: 0;
            background: rgba(18, 53, 91, 0.40);
            z-index: 0;
        }

    .login-visual {
        display: none;
    }

    .login-panel {
        position: relative;
        z-index: 1;
        width: 100%;
        min-height: calc(100vh - 44px);
        flex: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .login-card {
        max-width: 410px;
        margin: auto;
    }
}

@media (max-width: 575.98px) {
    .login-shell {
        padding: 14px;
    }

    .login-card {
        border-radius: 15px;
    }

    .login-card-header {
        padding: 23px 22px 16px 22px;
    }

    .login-card-body {
        padding: 20px 22px 20px 22px;
    }

    .login-logo {
        max-width: 180px;
        max-height: 78px;
    }

    .login-title {
        font-size: 22px;
    }
}

@media (max-height: 690px) and (min-width: 992px) {
    .login-panel {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .login-card-header {
        padding: 20px 28px 13px 28px;
    }

    .login-card-body {
        padding: 18px 28px 16px 28px;
    }

    .login-logo {
        max-width: 180px;
        max-height: 80px;
        margin-bottom: 10px;
    }

    .login-title {
        font-size: 21px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .form-group-login {
        margin-bottom: 11px;
    }



    .login-footer {
        margin-top: 14px;
        padding-top: 12px;
    }
}
