:root {
    --burgundy: #611232;
    --blue: #0B3D91;
    --blue-dark: #061E45;
    --blue-mid: #123B73;
    --blue-soft: #EAF1FF;
    --gold: #D4AF37;
    --gold-soft: #FFF6D8;
    --white: #FFFFFF;
    --bg: #F4F7FB;
    --text: #172033;
    --muted: #667085;
    --border: #DFE7F2;
    --success: #16A34A;
    --danger: #DC2626;
    --warning: #F59E0B;
    --success-soft: #DCFCE7;
    --danger-soft: #FEE2E2;
    --warning-soft: #FEF3C7;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 34px 90px rgba(15, 23, 42, 0.18);
}

/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

    button:disabled {
        cursor: not-allowed;
    }

.material-symbols-rounded {
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.container {
    width: min(100% - 48px, 1240px);
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* GOBIERNO */

.gov-bar {
    background: var(--burgundy);
    color: var(--white);
}

.gov-content {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gov-brand img {
    height: 42px;
    display: block;
}

.gov-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 900;
}

    .gov-links a {
        opacity: 0.94;
        transition: 0.2s ease;
    }

        .gov-links a:hover {
            opacity: 1;
            transform: translateY(-1px);
        }

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    display: grid;
    place-items: center;
    transition: 0.2s ease;
}

    .icon-button:hover {
        background: rgba(255, 255, 255, 0.24);
        transform: translateY(-1px);
    }

/* LAYOUT */

.finance-login-page {
    min-height: calc(100vh - 62px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

/* PANEL VISUAL */

.visual-panel {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.22), transparent 30%), radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.10), transparent 28%), linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    color: var(--white);
    padding: clamp(28px, 5vw, 60px);
}

.grid-glow {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
    opacity: 0.55;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(3px);
    opacity: 0.48;
    pointer-events: none;
}

.orb-one {
    width: 280px;
    height: 280px;
    background: rgba(212, 175, 55, 0.24);
    top: 8%;
    right: 9%;
}

.orb-two {
    width: 190px;
    height: 190px;
    background: rgba(255, 255, 255, 0.13);
    bottom: 10%;
    left: 8%;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.back-link,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 950;
}

.back-link {
    background: rgba(255, 255, 255, 0.12);
    padding: 9px 13px;
    margin-bottom: 34px;
    transition: 0.2s ease;
}

    .back-link:hover {
        background: rgba(255, 255, 255, 0.18);
        transform: translateX(-3px);
    }

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 60px;
}

.brand-badge {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: var(--gold);
    color: var(--blue-dark);
    display: grid;
    place-items: center;
    font-weight: 950;
    font-size: 20px;
    box-shadow: 0 18px 48px rgba(212, 175, 55, 0.26);
    flex: 0 0 auto;
}

.brand-block strong,
.brand-block span {
    display: block;
}

.brand-block strong {
    font-size: 22px;
}

.brand-block span {
    color: #D8E2F0;
    margin-top: 3px;
}

.pill {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.13);
    padding: 9px 14px;
    margin-bottom: 20px;
}

.hero-copy h1 {
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    margin-bottom: 20px;
}

.hero-copy p {
    color: #D8E2F0;
    line-height: 1.7;
    max-width: 700px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 42px;
}

    .feature-grid article {
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 22px;
        padding: 18px;
        backdrop-filter: blur(12px);
        transition: 0.2s ease;
    }

        .feature-grid article:hover {
            transform: translateY(-4px);
            background: rgba(255, 255, 255, 0.14);
        }

    .feature-grid span {
        color: var(--gold);
        font-size: 34px;
    }

    .feature-grid strong,
    .feature-grid small {
        display: block;
    }

    .feature-grid strong {
        margin-top: 8px;
    }

    .feature-grid small {
        color: #D8E2F0;
        margin-top: 4px;
        line-height: 1.45;
    }

/* PANEL FORMULARIO */

.form-panel {
    padding: clamp(28px, 5vw, 60px);
    display: grid;
    align-content: center;
    gap: 18px;
    background: radial-gradient(circle at top right, rgba(11, 61, 145, 0.07), transparent 30%), var(--bg);
}

.login-card,
.support-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.login-card {
    border-radius: 34px;
    padding: clamp(26px, 4vw, 42px);
}

.card-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}

    .card-heading > span {
        width: 58px;
        height: 58px;
        border-radius: 20px;
        background: var(--gold-soft);
        color: #92400E;
        display: grid;
        place-items: center;
        font-size: 34px;
        flex: 0 0 auto;
    }

    .card-heading h2 {
        color: var(--blue-dark);
        font-size: 34px;
        letter-spacing: -0.035em;
        line-height: 1.05;
    }

    .card-heading p {
        color: var(--muted);
        line-height: 1.6;
        margin-top: 6px;
    }

.login-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

    .form-group label {
        color: var(--blue-dark);
        font-weight: 900;
    }

    .form-group small {
        color: var(--muted);
        line-height: 1.45;
        font-size: 13px;
    }

/* INPUTS */

.input-shell {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0 14px;
    transition: 0.2s ease;
}

    .input-shell > span {
        color: var(--blue);
        flex: 0 0 auto;
    }

    .input-shell input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: none;
        background: transparent;
        color: var(--text);
        font-weight: 750;
    }

        .input-shell input::placeholder {
            color: #7A8496;
        }

        .input-shell input[readonly] {
            color: var(--blue-dark);
            cursor: default;
        }

    .input-shell:focus-within {
        border-color: var(--blue);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.12);
    }

.password-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    transition: 0.2s ease;
}

    .password-toggle span {
        font-size: 23px;
    }

    .password-toggle:hover {
        background: #DCEAFF;
        transform: scale(1.04);
    }

    .password-toggle:focus-visible {
        outline: 3px solid rgba(11, 61, 145, 0.22);
        outline-offset: 2px;
    }

/* REMEMBER */

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    user-select: none;
}

    .remember-row input {
        width: 18px;
        height: 18px;
        accent-color: var(--blue);
        cursor: pointer;
    }

    .remember-row span {
        line-height: 1.3;
    }

/* BOTONES */

.primary-button,
.secondary-button {
    min-height: 52px;
    width: 100%;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 950;
    transition: 0.2s ease;
}

.primary-button {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 14px 32px rgba(11, 61, 145, 0.24);
}

    .primary-button:hover {
        background: var(--blue-dark);
        transform: translateY(-2px);
    }

.secondary-button {
    background: var(--blue-soft);
    color: var(--blue);
}

    .secondary-button:hover {
        transform: translateY(-2px);
        background: #DCEAFF;
    }

.primary-button:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

/* ALERTAS */

.login-alert {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 850;
    line-height: 1.5;
}

    .login-alert.success {
        background: var(--success-soft);
        color: #166534;
    }

    .login-alert.error {
        background: var(--danger-soft);
        color: #991B1B;
    }

    .login-alert.info {
        background: var(--blue-soft);
        color: var(--blue);
    }

    .login-alert.warning {
        background: var(--warning-soft);
        color: #92400E;
    }

/* SUPPORT CARD */

.support-card {
    border-radius: 26px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

    .support-card > span {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        background: var(--blue-soft);
        color: var(--blue);
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        font-size: 28px;
    }

    .support-card strong {
        display: block;
        color: var(--blue-dark);
        margin-bottom: 5px;
    }

    .support-card p {
        color: var(--muted);
        line-height: 1.6;
        font-size: 14px;
    }

/* RESPONSIVE */

@media (max-width: 1080px) {
    .finance-login-page {
        grid-template-columns: 1fr;
    }

    .visual-panel {
        min-height: auto;
    }

    .form-panel {
        align-content: start;
    }

    .visual-content {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .card-heading {
        display: grid;
    }

        .card-heading > span {
            margin-bottom: 0;
        }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1240px);
    }

    .gov-content {
        min-height: 58px;
    }

    .gov-brand img {
        height: 34px;
    }

    .gov-links {
        gap: 14px;
        font-size: 14px;
    }

        .gov-links a {
            display: none;
        }

    .visual-panel,
    .form-panel {
        padding: 24px;
    }

    .brand-block {
        margin-bottom: 38px;
    }

    .brand-badge {
        width: 58px;
        height: 58px;
        border-radius: 20px;
        font-size: 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        border-radius: 24px;
    }

    .support-card {
        display: grid;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 13vw, 54px);
    }
}

@media (max-width: 420px) {
    .visual-panel,
    .form-panel {
        padding: 18px;
    }

    .login-card {
        padding: 22px;
    }

    .input-shell {
        padding: 0 12px;
    }

    .primary-button,
    .secondary-button {
        min-height: 50px;
        font-size: 14px;
    }
}
