﻿
    html, body { margin: 0; padding: 0; height: 100%; overflow-x: hidden; }

    /* â•â• Shell principal â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    .jfh-login-shell {
        display: flex;
        min-height: 100vh;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        -webkit-font-smoothing: antialiased;
    }

    /* â•â• Panel de marca (izquierdo) â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    .jfh-brand {
        flex: 0 0 44%;
        background: linear-gradient(148deg, #1a2275 0%, #242F9B 55%, #2b3cbf 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 64px 52px;
        position: relative;
        overflow: hidden;
    }

    /* CÃ­rculos decorativos */
    .jfh-brand::before {
        content: '';
        position: absolute;
        top: -100px; right: -100px;
        width: 380px; height: 380px;
        border-radius: 50%;
        background: rgba(255,255,255,.04);
        pointer-events: none;
    }
    .jfh-brand::after {
        content: '';
        position: absolute;
        bottom: -110px; left: -70px;
        width: 320px; height: 320px;
        border-radius: 50%;
        background: rgba(218,186,75,.07);
        pointer-events: none;
    }
    .jfh-deco-ring-1 {
        position: absolute; top: 160px; left: -52px;
        width: 140px; height: 140px; border-radius: 50%;
        border: 1.5px solid rgba(218,186,75,.22);
        pointer-events: none;
    }
    .jfh-deco-ring-2 {
        position: absolute; bottom: 160px; right: 36px;
        width: 80px; height: 80px; border-radius: 50%;
        border: 1.5px solid rgba(255,255,255,.10);
        pointer-events: none;
    }
    .jfh-deco-dot-gold {
        position: absolute; top: 72px; right: 72px;
        width: 10px; height: 10px; border-radius: 50%;
        background: rgba(218,186,75,.65); pointer-events: none;
    }
    .jfh-deco-dot-green {
        position: absolute; bottom: 100px; left: 72px;
        width: 7px; height: 7px; border-radius: 50%;
        background: rgba(1,198,7,.55); pointer-events: none;
    }
    .jfh-deco-line {
        position: absolute; bottom: 260px; right: -20px;
        width: 100px; height: 1px;
        background: linear-gradient(90deg, rgba(218,186,75,.4), transparent);
        transform: rotate(-45deg); pointer-events: none;
    }

    /* Logo */
    .jfh-brand-logo {
        width: 92px; height: 92px;
        border-radius: 22px;
        object-fit: cover;
        box-shadow: 0 24px 56px rgba(0,0,0,.40),
                    0 0 0 1px rgba(255,255,255,.08),
                    0 0 0 4px rgba(218,186,75,.28);
        margin-bottom: 28px;
        animation: jfhLogoIn .7s cubic-bezier(.22,1,.36,1) both;
    }
    .jfh-brand-name {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 22px; font-weight: 700;
        color: #fff; text-align: center;
        letter-spacing: .2px; line-height: 1.3;
        margin: 0 0 6px;
        animation: jfhFadeUp .6s .08s cubic-bezier(.22,1,.36,1) both;
    }
    .jfh-brand-tag {
        font-size: 10.5px; font-weight: 600;
        letter-spacing: 2.8px; text-transform: uppercase;
        color: rgba(218,186,75,.90);
        text-align: center; margin: 0 0 36px;
        animation: jfhFadeUp .6s .14s cubic-bezier(.22,1,.36,1) both;
    }
    .jfh-brand-divider {
        width: 44px; height: 1.5px;
        background: linear-gradient(90deg,
            rgba(218,186,75,0) 0%,
            rgba(218,186,75,.80) 50%,
            rgba(218,186,75,0) 100%);
        margin: 0 auto 32px;
        animation: jfhFadeUp .6s .18s cubic-bezier(.22,1,.36,1) both;
    }
    .jfh-brand-quote {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 15px; font-style: italic;
        color: rgba(255,255,255,.70);
        text-align: center; line-height: 1.75;
        max-width: 256px;
        animation: jfhFadeUp .6s .22s cubic-bezier(.22,1,.36,1) both;
    }
    .jfh-brand-stats {
        display: flex; gap: 10px; margin-top: 44px;
        animation: jfhFadeUp .6s .28s cubic-bezier(.22,1,.36,1) both;
    }
    .jfh-stat {
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        background: rgba(255,255,255,.065);
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 14px; padding: 14px 18px;
        backdrop-filter: blur(6px);
        transition: background .25s ease, border-color .25s ease;
    }
    .jfh-stat:hover { background: rgba(255,255,255,.10); border-color: rgba(218,186,75,.22); }
    .jfh-stat-num {
        font-family: 'Playfair Display', serif;
        font-size: 24px; font-weight: 700; color: #DABA4B; line-height: 1;
    }
    .jfh-stat-lbl {
        font-size: 9.5px; font-weight: 600; text-transform: uppercase;
        letter-spacing: 1.4px; color: rgba(255,255,255,.48);
    }
    .jfh-brand-copy {
        position: absolute; bottom: 24px;
        font-size: 10.5px; color: rgba(255,255,255,.25);
        letter-spacing: .4px;
    }

    /* â•â• Panel de formulario (derecho) â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    .jfh-form-wrap {
        flex: 1;
        display: flex; align-items: center; justify-content: center;
        padding: 48px 40px;
        background: #f8fafc;
        min-height: 100vh;
    }
    .jfh-form-card {
        width: 100%; max-width: 400px;
        animation: jfhFormIn .55s .1s cubic-bezier(.22,1,.36,1) both;
    }

    /* Enlace "regresar" */
    .jfh-back {
        display: inline-flex; align-items: center; gap: 6px;
        font-size: 12.5px; font-weight: 500; color: #64748b;
        text-decoration: none; margin-bottom: 40px;
        transition: color .2s ease;
    }
    .jfh-back:hover { color: #242F9B; }
    .jfh-back:hover .jfh-back-arrow { transform: translateX(-3px); }
    .jfh-back:focus-visible {
        outline: 2px solid #242F9B; outline-offset: 3px; border-radius: 4px;
    }
    .jfh-back-arrow { transition: transform .2s ease; }

    /* Encabezado */
    .jfh-login-title {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 28px; font-weight: 700;
        color: #0f172a; margin: 0 0 8px; letter-spacing: -.2px;
    }
    .jfh-login-sub {
        font-size: 13.5px; color: #64748b;
        margin: 0 0 36px; line-height: 1.55;
    }

    /* Alerta de error */
    .jfh-alert {
        display: flex; align-items: flex-start; gap: 10px;
        background: #fff1f2; border: 1px solid #fecaca;
        border-left: 3px solid #f87171;
        border-radius: 10px; padding: 13px 16px;
        font-size: 13px; color: #9f1239;
        margin-bottom: 24px; line-height: 1.5;
        animation: jfhAlertIn .3s cubic-bezier(.22,1,.36,1);
    }
    .jfh-alert-icon { flex-shrink: 0; margin-top: 1px; }

    /* Campos */
    .jfh-field { margin-bottom: 20px; }
    .jfh-label {
        display: block; font-size: 12.5px; font-weight: 600;
        color: #374151; margin-bottom: 7px; letter-spacing: .15px;
    }
    .jfh-input-row { position: relative; }
    .jfh-input {
        width: 100%; height: 48px; padding: 0 14px;
        border: 1.5px solid #e2e8f0; border-radius: 10px;
        font-size: 14px; color: #0f172a; background: #fff;
        outline: none; box-sizing: border-box; font-family: inherit;
        transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
        appearance: none; -webkit-appearance: none;
    }
    .jfh-input::placeholder { color: #94a3b8; }
    .jfh-input:hover:not(:focus) { border-color: #cbd5e1; }
    .jfh-input:focus {
        border-color: #242F9B;
        box-shadow: 0 0 0 3.5px rgba(36,47,155,.11);
        background: #fff;
    }
    .jfh-input-pass { padding-right: 50px; }
    .jfh-err-msg {
        font-size: 11.5px; color: #ef4444; margin-top: 5px;
        display: flex; align-items: center; gap: 4px; font-weight: 500;
    }

    /* BotÃ³n ojo */
    .jfh-eye-btn {
        position: absolute; right: 0; top: 0; bottom: 0;
        width: 48px; display: flex; align-items: center; justify-content: center;
        background: none; border: none; cursor: pointer;
        color: #94a3b8; padding: 0;
        border-radius: 0 10px 10px 0;
        transition: color .2s ease;
    }
    .jfh-eye-btn:hover { color: #242F9B; }
    .jfh-eye-btn:focus-visible {
        outline: 2px solid #242F9B; outline-offset: -2px;
        border-radius: 0 10px 10px 0;
    }

    /* Fila: recordar + olvidÃ© */
    .jfh-meta-row {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 28px; gap: 12px;
    }
    .jfh-remember {
        display: flex; align-items: center; gap: 8px; cursor: pointer;
    }
    .jfh-checkbox {
        width: 18px; height: 18px; flex-shrink: 0;
        border: 1.5px solid #cbd5e1; border-radius: 5px;
        accent-color: #242F9B; cursor: pointer;
    }
    .jfh-remember-lbl {
        font-size: 13px; color: #475569; cursor: pointer; user-select: none;
    }
    .jfh-forgot {
        font-size: 12.5px; font-weight: 600; color: #242F9B;
        text-decoration: none; white-space: nowrap;
        transition: color .2s ease;
    }
    .jfh-forgot:hover { color: #1a2275; text-decoration: underline; }
    .jfh-forgot:focus-visible { outline: 2px solid #242F9B; outline-offset: 2px; border-radius: 3px; }

    /* BotÃ³n de acceso */
    .jfh-submit-btn {
        width: 100%; height: 50px;
        background: linear-gradient(135deg, #242F9B 0%, #2b3cbf 100%);
        color: #fff; font-size: 14.5px; font-weight: 600;
        border: none; border-radius: 10px; cursor: pointer;
        display: flex; align-items: center; justify-content: center; gap: 10px;
        letter-spacing: .2px; font-family: inherit;
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
        box-shadow: 0 4px 18px rgba(36,47,155,.38);
        position: relative; overflow: hidden;
    }
    .jfh-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(36,47,155,.44);
        background: linear-gradient(135deg, #1a2275 0%, #242F9B 100%);
    }
    .jfh-submit-btn:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(36,47,155,.30);
    }
    .jfh-submit-btn:focus-visible {
        outline: 2px solid #242F9B; outline-offset: 3px;
    }
    .jfh-submit-btn .btn-arrow {
        transition: transform .25s ease;
    }
    .jfh-submit-btn:hover .btn-arrow { transform: translateX(4px); }
    .jfh-submit-btn .jfh-ripple {
        position: absolute; border-radius: 50%;
        background: rgba(255,255,255,.28);
        transform: scale(0);
        animation: jfhRipple .5s ease-out forwards;
        pointer-events: none;
    }

    /* Separador */
    .jfh-separator {
        display: flex; align-items: center; gap: 12px;
        margin: 24px 0;
    }
    .jfh-separator-line {
        flex: 1; height: 1px; background: #e2e8f0;
    }
    .jfh-separator-txt {
        font-size: 11.5px; font-weight: 500; color: #94a3b8;
        white-space: nowrap; letter-spacing: .5px;
    }

    /* â•â• Animaciones â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    @keyframes jfhLogoIn {
        from { opacity:0; transform: scale(.80) translateY(16px); }
        to   { opacity:1; transform: scale(1) translateY(0); }
    }
    @keyframes jfhFadeUp {
        from { opacity:0; transform: translateY(16px); }
        to   { opacity:1; transform: translateY(0); }
    }
    @keyframes jfhFormIn {
        from { opacity:0; transform: translateX(20px); }
        to   { opacity:1; transform: translateX(0); }
    }
    @keyframes jfhAlertIn {
        from { opacity:0; transform: translateY(-6px) scale(.98); }
        to   { opacity:1; transform: translateY(0) scale(1); }
    }
    @keyframes jfhRipple {
        to { transform: scale(2.8); opacity: 0; }
    }

    /* â•â• Responsive â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
    @media (max-width: 880px) {
        .jfh-brand { flex: 0 0 40%; padding: 48px 36px; }
        .jfh-brand-stats { gap: 8px; }
        .jfh-stat { padding: 12px 14px; }
    }
    @media (max-width: 640px) {
        .jfh-login-shell { flex-direction: column; }
        .jfh-brand {
            flex: none;
            padding: 20px 24px;
            flex-direction: row;
            justify-content: flex-start;
            gap: 14px;
            min-height: auto;
        }
        .jfh-brand::before, .jfh-brand::after { display: none; }
        .jfh-deco-ring-1, .jfh-deco-ring-2,
        .jfh-deco-dot-gold, .jfh-deco-dot-green,
        .jfh-deco-line { display: none; }
        .jfh-brand-logo { width: 44px; height: 44px; border-radius: 10px; margin: 0; animation: none; }
        .jfh-brand-name { font-size: 16px; text-align: left; animation: none; }
        .jfh-brand-tag { text-align: left; margin-bottom: 0; font-size: 9px; animation: none; }
        .jfh-brand-divider, .jfh-brand-quote,
        .jfh-brand-stats, .jfh-brand-copy { display: none; }
        .jfh-brand-text-col { display: flex; flex-direction: column; gap: 2px; }
        .jfh-form-wrap { padding: 28px 20px 40px; min-height: auto; }
        .jfh-form-card { max-width: 100%; animation: none; }
        .jfh-login-title { font-size: 23px; }
        .jfh-back { margin-bottom: 28px; }
    }

.jfh-alert-success {
    display: flex; align-items: flex-start; gap: 10px;
    background: #ecfdf5; border: 1px solid #a7f3d0;
    border-left: 3px solid #10b981;
    border-radius: 10px; padding: 13px 16px;
    font-size: 13px; color: #065f46;
    margin-bottom: 24px; line-height: 1.5;
}
.jfh-auth-footer {
    text-align: center; font-size: 13px; color: #64748b;
    margin-top: 24px; line-height: 1.6;
}
.jfh-auth-footer a {
    color: #242F9B; font-weight: 600; text-decoration: none;
}
.jfh-auth-footer a:hover { text-decoration: underline; }
