/* =============================================
 * STYLES.CSS - QRCODE ENTERPRISE APPLICATION
 * Rediseño visual elegante — funciones intactas
 * ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ======= VARIABLES ======= */
:root {
    --red:        #e50914;
    --red-dark:   #b30710;
    --red-glow:   rgba(229, 9, 20, 0.35);
    --red-soft:   rgba(229, 9, 20, 0.12);
    --bg:         #0d0d0d;
    --bg-card:    rgba(18, 18, 18, 0.92);
    --bg-input:   rgba(255, 255, 255, 0.05);
    --bg-input-hover: rgba(255, 255, 255, 0.08);
    --border:     rgba(255, 255, 255, 0.08);
    --border-red: rgba(229, 9, 20, 0.4);
    --text:       #f0f0f0;
    --text-muted: #888;
    --radius:     14px;
    --radius-sm:  8px;
    --shadow-card: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px var(--border);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======= RESET Y BASE ======= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 0 50px;
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.5;
}

a { text-decoration: none; color: var(--red); transition: color var(--transition); }
a:hover { color: #ff1a27; }
ul { list-style: none; }
button, input, select { font-family: inherit; font-size: inherit; }

/* ======= HEADINGS ======= */
h1, h2 {
    color: var(--red);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ======= FONDO HERO ANIMADO ======= */
.hero {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(ellipse at 20% 50%, rgba(229,9,20,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(229,9,20,0.04) 0%, transparent 50%);
}

.cube {
    position: absolute;
    top: 80vh;
    left: 45vw;
    width: 10px; height: 10px;
    border: 1px solid rgba(152, 0, 0, 0.5);
    transform-origin: top left;
    transform: scale(0) rotate(0) translate(-50%, -50%);
    animation: 12s ease-in infinite forwards cube;
}
.cube:nth-child(2n)  { border-color: rgba(244, 0, 0, 0.4); }
.cube:nth-child(2)   { animation-delay: 2s;  left: 25vw; top: 40vh; }
.cube:nth-child(3)   { animation-delay: 4s;  left: 75vw; top: 50vh; }
.cube:nth-child(4)   { animation-delay: 6s;  left: 90vw; top: 10vh; }
.cube:nth-child(5)   { animation-delay: 8s;  left: 10vw; top: 85vh; }
.cube:nth-child(6)   { animation-delay: 10s; left: 50vw; top: 10vh; }

/* ======= CONTENEDOR PRINCIPAL ======= */
.container {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 460px;
    margin: 60px auto;
    text-align: center;
    position: relative;
    animation: fade-in 0.6s ease-out;
}

.container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--red-soft) 0%, transparent 50%);
    pointer-events: none;
}

/* ======= BRAND / CABECERA ======= */
.brand {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.brand-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 8px 24px var(--red-glow);
}

.brand-icon i { font-size: 22px; color: #fff; }

.brand h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ======= GRUPOS DE FORMULARIO ======= */
.form-group {
    margin-bottom: 8px;
    text-align: left;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

/* ======= INPUTS CON ÍCONO ======= */
.input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 13px 14px 13px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--red);
    background: var(--bg-input-hover);
    box-shadow: 0 0 0 3px var(--red-soft);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
    color: var(--red);
}

.input-wrapper input::placeholder { color: #555; }

/* Fallback inputs sin wrapper */
.container > input,
input[type=text]:not(.input-wrapper input),
input[type=email]:not(.input-wrapper input),
input[type=password]:not(.input-wrapper input) {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    margin: 6px 0;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

/* ======= BOTONES ======= */
button {
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

button:active { transform: scale(0.97) !important; }

/* Botón primario (rojo sólido) */
.btn-primary, button.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 16px var(--red-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f41020 0%, var(--red) 100%);
    box-shadow: 0 6px 24px rgba(229,9,20,0.5);
    transform: translateY(-1px);
}

/* Botón de acción (borde rojo / ghost) */
.btn-action, button.btn-action {
    background: var(--red-soft);
    border: 1px solid var(--border-red);
    color: #f0f0f0;
}

.btn-action:hover {
    background: rgba(229,9,20,0.2);
    border-color: var(--red);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--red-glow);
}

/* Botón secundario (gris) */
.btn-secondary, button.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: #ccc;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.18);
    color: #fff;
    transform: translateY(-1px);
}

/* Botón de admin (circular) */
.admin-button {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    margin: 0;
    padding: 0;
    width: 38px;
}

.admin-button:hover {
    background: var(--red-soft);
    border-color: var(--border-red);
    color: var(--red);
    transform: none;
}

.admin-button i { font-size: 15px; }

/* Grid de 2 botones */
.btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.btn-grid button { margin-top: 0; }

.btn-grid .btn-wide { grid-column: 1 / -1; }

/* Recovery button (subdue) */
#sendRecoveryLinkButton {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 16px;
    padding: 10px;
    border-radius: var(--radius-sm);
    box-shadow: none;
}

#sendRecoveryLinkButton:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.18);
    color: #aaa;
    transform: none;
    box-shadow: none;
}

/* ======= MENSAJES Y NOTIFICACIONES ======= */
.message {
    display: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    text-align: left;
    font-size: 12.5px;
    font-weight: 500;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
    border-left: 3px solid transparent;
}

.message-success {
    background: rgba(20, 90, 36, 0.3);
    border-left-color: #2ecc71;
    color: #7dffa8;
}

.message-error {
    background: rgba(180, 20, 30, 0.25);
    border-left-color: var(--red);
    color: #ff8a8a;
}

.message.hidden {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.message .close-btn {
    background: transparent;
    border: none;
    font-size: 11px;
    padding: 2px 4px;
    margin: 0;
    color: currentColor;
    opacity: 0.6;
    cursor: pointer;
    width: auto;
    flex-shrink: 0;
    transition: opacity var(--transition);
}

.message .close-btn:hover { opacity: 1; }

/* Status */
.status {
    background: linear-gradient(135deg, #b30710, #e50914);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    animation: shake 0.3s ease-in-out;
}

.status.show { opacity: 1; }

/* ======= LOADING ======= */
.loading {
    display: none;
    color: #f5c518;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.progress-container {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin: 12px 0;
    display: none;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--red-dark), var(--red), #ff5060);
    animation: progress 1.8s ease-in-out infinite;
}

/* ======= DROPDOWN ======= */
.dropdown {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: border-color var(--transition);
    appearance: none;
}

.dropdown:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

/* ======= BACK BTN ======= */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--red);
    padding: 5px 10px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: color var(--transition);
}

.back-btn:hover { color: #ff1a27; text-decoration: underline; }

/* ======= FOOTER ======= */
footer {
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    font-size: 11.5px;
    border-top: 1px solid var(--border);
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 10;
    text-align: center;
}

footer p { margin: 3px 0; }
footer a { color: var(--red); text-decoration: none; }
footer a:hover { text-decoration: underline; }

footer .footer-icons { margin-top: 4px; }
footer .footer-icons a {
    margin: 0 8px;
    color: #555;
    font-size: 14px;
    transition: color var(--transition), transform var(--transition);
    display: inline-block;
}
footer .footer-icons a:hover { color: var(--red); transform: scale(1.2); }

/* ======= BOTÓN REFRESH ======= */
#refresh-btn {
    position: fixed;
    bottom: 60px; right: 20px;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--red-glow);
    cursor: pointer;
    z-index: 1000;
    transition: transform var(--transition), box-shadow var(--transition);
    border: none;
}

#refresh-btn:hover {
    transform: scale(1.08) rotate(30deg);
    box-shadow: 0 6px 24px rgba(229,9,20,0.55);
}

#refresh-btn i { font-size: 17px; }

/* ======= SCROLL INDICATOR ======= */
#scroll-indicator {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    transition: width 0.2s, opacity 0.5s;
    opacity: 1;
    z-index: 10000;
}

/* ======= MENSAJE DE RECARGA ======= */
#recarga-message {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 16, 16, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: #fff;
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s, transform 0.3s;
    z-index: 10000;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

#recarga-message .loader {
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--red);
    border-radius: 50%;
    width: 32px; height: 32px;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 12px;
}

/* ======= LOADING OVERLAY ======= */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: white;
    backdrop-filter: blur(6px);
}

.loading-spinner {
    width: 52px; height: 52px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top: 3px solid var(--red);
    animation: spin 0.9s linear infinite;
    margin-bottom: 18px;
}

.loading-overlay p {
    font-size: 16px;
    font-weight: 500;
    margin-top: 12px;
    color: #bbb;
}

/* ======= TOAST ======= */
#toast-container {
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 1900;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast {
    display: flex;
    align-items: flex-start;
    background: #181818;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    min-width: 280px;
    max-width: 380px;
    border-left: 4px solid var(--red);
    animation: slideIn 0.3s ease-out;
    transition: transform 0.3s, opacity 0.3s;
}

.toast.success { border-left-color: #2ecc71; }
.toast.error   { border-left-color: #e74c3c; }
.toast.warning { border-left-color: #f39c12; }
.toast.info    { border-left-color: #3498db; }

.toast i { font-size: 20px; margin-right: 14px; flex-shrink: 0; }
.toast.success i { color: #2ecc71; }
.toast.error i   { color: #e74c3c; }
.toast.warning i { color: #f39c12; }
.toast.info i    { color: #3498db; }

.toast div { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.toast-message { color: #888; font-size: 13px; line-height: 1.4; }

.toast button {
    background: transparent;
    border: none;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    width: auto;
    line-height: 1;
    transition: color 0.2s;
    box-shadow: none;
}

.toast button:hover { color: var(--text); background: transparent; box-shadow: none; transform: none; }

/* ======= MODAL ======= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1800;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal.show { display: flex; animation: fadeIn 0.3s; }

.modal-content {
    background: #161616;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%; max-width: 480px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.3s forwards;
}

.modal-header {
    padding: 16px 20px;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 { color: var(--text); font-size: 16px; margin: 0; font-weight: 600; }

.close-btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    width: auto;
    padding: 0;
    box-shadow: none;
}

.close-btn:hover { color: var(--text); background: transparent; box-shadow: none; transform: none; }

.modal-body { padding: 20px; }

.confirmation-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.confirmation-message i { font-size: 44px; color: #f39c12; margin-bottom: 14px; }
.confirmation-message p { color: var(--text); line-height: 1.6; font-size: 14px; }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 20px;
    margin-top: 10px;
}

.button-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: #888;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: auto;
    box-shadow: none;
}

.button-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s;
    width: auto;
    box-shadow: 0 4px 12px var(--red-glow);
}

.button-secondary:hover { background: rgba(255,255,255,0.09); color: #ccc; }
.button-primary:hover   { box-shadow: 0 6px 20px rgba(229,9,20,0.5); }

/* ======= ANIMACIONES ======= */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%, 75%  { transform: translateX(-5px); }
    50%       { transform: translateX(5px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes progress {
    0%   { width: 0; margin-left: 0; }
    50%  { width: 70%; margin-left: 15%; }
    100% { width: 0; margin-left: 100%; }
}

@keyframes cube {
    from { transform: scale(0) rotate(0) translate(-50%, -50%); opacity: 1; }
    to   { transform: scale(20) rotate(960deg) translate(-50%, -50%); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(80px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ======= MEDIA QUERIES ======= */
@media (max-width: 600px) {
    .container { padding: 28px 20px; margin: 40px auto; }
    .btn-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .login-box { padding: 24px 16px; margin: 30px auto; }
    #refresh-btn { width: 40px; height: 40px; bottom: 58px; right: 14px; }
    #refresh-btn i { font-size: 15px; }
    #sendRecoveryLinkButton { width: 100%; }
    .toast { min-width: auto; }
    #toast-container { left: 10px; right: 10px; width: calc(100% - 20px); max-width: none; }
}

/* ======= ACCESIBILIDAD ======= */
.toast:focus-within,
.modal-content:focus-within,
.button-primary:focus,
.button-secondary:focus,
.close-btn:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* ============================================================
   LOGIN PAGE — REDISEÑO COMPLETO 2026
   Afecta únicamente body.login-page y prefijos .login- / .lf-
   ============================================================ */

body.login-page {
    background: #0a0a0a;
    display: block;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

/* ── Fondo con glow y grid ── */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.login-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    pointer-events: none;
}

.login-bg-glow--1 {
    width: 600px; height: 600px;
    background: #e50914;
    top: -180px; left: -120px;
    animation: glowPulse 8s ease-in-out infinite alternate;
}

.login-bg-glow--2 {
    width: 400px; height: 400px;
    background: #7b0010;
    bottom: -100px; right: -80px;
    animation: glowPulse 10s ease-in-out infinite alternate-reverse;
}

.login-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── Layout wrapper ── */
.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ── Panel izquierdo ── */
.login-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: linear-gradient(160deg, rgba(229,9,20,0.1) 0%, rgba(0,0,0,0) 60%);
    border-right: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.login-side::before {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border: 1px solid rgba(229,9,20,0.12);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.login-side::after {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    border: 1px solid rgba(229,9,20,0.06);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.login-side-content { max-width: 360px; }

.login-side-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #e50914, #b30710);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 12px 36px rgba(229,9,20,0.4);
}

.login-side-logo i { font-size: 28px; color: #fff; }

.login-side-title {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.login-side-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 300px;
}

.login-side-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.login-feature i {
    width: 32px; height: 32px;
    background: rgba(229,9,20,0.1);
    border: 1px solid rgba(229,9,20,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #e50914;
    flex-shrink: 0;
}

/* ── Panel derecho ── */
.login-main {
    width: 460px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: rgba(10,10,10,0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.login-card {
    width: 100%;
    max-width: 360px;
    animation: fade-in 0.5s ease-out;
}

.login-card-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-card-badge {
    width: 52px; height: 52px;
    background: rgba(229,9,20,0.12);
    border: 1px solid rgba(229,9,20,0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.login-card-badge i { font-size: 20px; color: #e50914; }

.login-card-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #f0f0f0;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.login-card-header p {
    font-size: 13px;
    color: #555;
}

/* ── Formulario ── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lf-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lf-group label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lf-icon {
    position: absolute;
    left: 14px;
    color: #444;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.25s;
    z-index: 1;
}

.lf-input-wrap:focus-within .lf-icon { color: #e50914; }

.lf-input-wrap input {
    width: 100%;
    padding: 13px 42px 13px 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #f0f0f0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.lf-input-wrap input:focus {
    outline: none;
    border-color: rgba(229,9,20,0.6);
    background: rgba(229,9,20,0.04);
    box-shadow: 0 0 0 3px rgba(229,9,20,0.1);
}

.lf-input-wrap input::placeholder { color: #333; }

/* Botón ojo */
.lf-eye {
    position: absolute;
    right: 12px;
    background: transparent !important;
    border: none !important;
    color: #444;
    cursor: pointer;
    padding: 4px;
    width: auto !important;
    margin: 0 !important;
    font-size: 13px;
    box-shadow: none !important;
    transition: color 0.25s;
}

.lf-eye:hover {
    color: #888 !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Botón submit ── */
.lf-submit {
    width: 100%;
    padding: 14px 20px;
    margin-top: 6px;
    background: linear-gradient(135deg, #e50914 0%, #b30710 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    letter-spacing: 0.02em;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(229,9,20,0.35);
    position: relative;
    overflow: hidden;
}

.lf-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.5s ease;
}

.lf-submit:hover::before { left: 160%; }

.lf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(229,9,20,0.5);
}

.lf-submit:active { transform: scale(0.98) !important; }

.lf-submit i { font-size: 13px; opacity: 0.8; }

/* ── Mensaje de error ── */
.lf-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(180,20,30,0.15);
    border: 1px solid rgba(229,9,20,0.3);
    border-left: 3px solid #e50914;
    color: #ff8a8a;
    padding: 12px 14px;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
}

.lf-error i { flex-shrink: 0; font-size: 14px; }

/* ── Volver link ── */
.lf-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    color: #444;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s;
}

.lf-back:hover { color: #888; }
.lf-back i { font-size: 10px; }

/* ── Footer ── */
.login-footer {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    font-size: 11px;
    color: #333;
    background: transparent;
    border-top: none;
    box-shadow: none;
    z-index: 10;
}

/* ── Animación glow ── */
@keyframes glowPulse {
    from { opacity: 0.12; transform: scale(1); }
    to   { opacity: 0.22; transform: scale(1.08); }
}

/* ── Responsive ── */
@media (max-width: 820px) {
    .login-side { display: none; }
    .login-main { width: 100%; padding: 32px 24px; }
    body.login-page { overflow: auto; }
}

@media (max-width: 480px) {
    .login-main { padding: 24px 16px; }
    .login-card-header h2 { font-size: 22px; }
}
