﻿/* =====================================================================
   Vista: Views/Correos/InicialConCorreo.cshtml
   CSS sacado de la vista (antes estaba dentro del HTML).
   ===================================================================== */
/* ── Tarjeta de inicio de sesión (mismo diseño del Naranja, con los colores del Azul: navy + azul).
      Va al final para imponerse a los Bootstrap que carga la página. ── */
.left-panel { background: linear-gradient(150deg, #1a5bc0 0%, #114c9e 55%, #0d3c7a 100%) !important; padding: 48px 56px !important;
    align-items: flex-start !important; text-align: left !important; font-family: 'DM Sans', 'Segoe UI', sans-serif; }
.left-panel .hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); font-size: 12.5px; font-weight: 700; }
.left-panel .badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #93c5fd; }
.left-panel h1 { font-size: 2.6em !important; font-weight: 800; line-height: 1.12; margin-bottom: 16px !important; }
.left-panel p { font-size: 1.05em !important; opacity: .88; max-width: 420px; }
.left-panel .btn-info { display: inline-flex !important; align-items: center; gap: 8px; padding: 11px 22px !important; border-radius: 9px !important;
    background: transparent !important; border: 1.5px solid rgba(255,255,255,.55) !important; color: #fff !important; font-weight: 700; text-decoration: none; }
.left-panel .btn-info:hover { background: rgba(255,255,255,.12) !important; }

.right-panel { background: #f0f2f5 !important; justify-content: safe center !important; padding: 28px 24px !important; }
.IdUsuario { max-width: 420px !important; padding: 0 !important; overflow: hidden; border-radius: 16px !important; background: #fff !important;
    border: 1px solid #e3e6ec !important; box-shadow: 0 18px 50px rgba(18,25,43,.16), 0 2px 8px rgba(0,0,0,.05) !important;
    font-family: 'DM Sans', 'Segoe UI', sans-serif; animation: koEntra .3s cubic-bezier(.2,.8,.2,1); }
@keyframes koEntra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Encabezado: barra oscura con el logo KO azul */
.IdUsuario .Titulo { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 16px 24px !important;
    background: #12192B; border: 0 !important; border-bottom: 3px solid #3B82F6 !important; text-align: left !important; }
.IdUsuario .Titulo::before { content: 'KO'; flex: none; width: 40px; height: 40px; border-radius: 10px; background: #3B82F6; color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; letter-spacing: .5px; }
.IdUsuario .Titulo label { margin: 0 !important; color: #fff !important; font-size: 19px !important; font-weight: 800 !important; }

/* Cuerpo */
.IdUsuario form { padding: 20px 24px 22px; }
.IdUsuario .form-group { margin-bottom: 14px !important; }
.IdUsuario .ko-label { display: block; margin: 0 0 6px !important; font-size: 11.5px !important; font-weight: 800 !important;
    text-transform: uppercase; letter-spacing: .4px; color: #12192B !important; text-align: left !important; }
.IdUsuario .form-control { height: 44px !important; padding: 0 12px !important; font-size: 15px !important;
    text-align: left !important; border: 1.5px solid #9fb3cf !important; border-radius: 8px !important; background-color: #fff !important; color: #12192B !important; box-shadow: none !important; }
.IdUsuario .form-control:focus { border-color: #2563EB !important; box-shadow: 0 0 0 3px rgba(37,99,235,.18) !important; }
#lblCorreoGuardado { height: auto !important; padding: 10px 12px !important; border-radius: 8px !important; border: 1.5px dashed #9fb3cf !important;
    background: #f4f7fb !important; color: #2563EB !important; font-weight: 800 !important; text-align: center !important; word-break: break-all !important; overflow-wrap: anywhere !important;
    white-space: normal !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; overflow: hidden !important; line-height: 1.35 !important; }

/* Botones: principal azul, secundario en blanco, "Regístrate" azul claro */
.IdUsuario .btn-primary { display: flex; align-items: center; justify-content: center; width: 100% !important; height: 46px; padding: 0 16px !important;
    border: 0 !important; border-radius: 9px !important; background: #2563EB !important; color: #fff !important; font-size: 15px !important; font-weight: 700 !important;
    box-shadow: none; transition: filter .15s, transform .15s, box-shadow .15s; }
.IdUsuario .btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37,99,235,.25); }
.IdUsuario .btn-primary.ko-btn-sec { background: #fff !important; color: #12192B !important; border: 1.5px solid #c9d3e0 !important; height: 42px; font-size: 14px !important; }
.IdUsuario .btn-primary.ko-btn-sec:hover { background: #eef4fc !important; box-shadow: none; }
.IdUsuario .btn-primary.ko-btn-claro { background: #dbeafe !important; color: #1d4ed8 !important; height: 42px; font-size: 14px !important; }
.IdUsuario .btn-primary.ko-btn-claro:hover { box-shadow: 0 8px 18px rgba(59,130,246,.22); }
.IdUsuario .ko-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.IdUsuario .ko-separador { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: #6b7280; font-size: 12.5px; }
.IdUsuario .ko-separador::before, .IdUsuario .ko-separador::after { content: ''; flex: 1; height: 1px; background: #e3e6ec; }
/* ── Panel izquierdo animado ─────────────────────────────────────────── */
/* Fondo: cuadrícula tenue que se desplaza, encima del degradado azul */
.left-panel {
    position: relative; overflow: hidden; isolation: isolate;
    background:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(150deg, #1a5bc0 0%, #114c9e 55%, #0d3c7a 100%) !important;
    background-size: 42px 42px, 42px 42px, 100% 100% !important;
    animation: koRejilla 30s linear infinite;
}
@keyframes koRejilla { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 42px 84px, 42px 84px, 0 0; } }
.left-panel > * { position: relative; z-index: 1; }
/* Dos manchas de luz que flotan despacio */
.left-panel::before, .left-panel::after {
    content: ''; position: absolute; z-index: 0; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.left-panel::before { width: 420px; height: 420px; top: -120px; right: -140px; background: rgba(96,165,250,.45); animation: koOrbe1 16s ease-in-out infinite alternate; }
.left-panel::after  { width: 360px; height: 360px; bottom: -140px; left: -120px; background: rgba(147,197,253,.30); animation: koOrbe2 19s ease-in-out infinite alternate; }
@keyframes koOrbe1 { to { transform: translate(-120px, 140px) scale(1.15); } }
@keyframes koOrbe2 { to { transform: translate(140px, -110px) scale(1.1); } }

.ko-anim { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; max-width: 560px; }
/* Tarjeta "Ventas de hoy" con barras vivas */
.ko-mini {
    width: 230px; padding: 14px 16px 12px; border-radius: 14px; color: #fff;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(6px); box-shadow: 0 12px 30px rgba(6,22,60,.25);
    animation: koFlota 6s ease-in-out infinite;
}
.ko-mini-tit { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; opacity: .95; margin-bottom: 10px; }
.ko-mini-tit b { font-size: 11px; color: #86efac; background: rgba(34,197,94,.16); padding: 2px 7px; border-radius: 999px; }
.ko-barras { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.ko-barras span {
    flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #93c5fd, rgba(147,197,253,.35));
    transform-origin: bottom; animation: koBarra 3.2s ease-in-out infinite;
}
.ko-barras span:nth-child(1) { height: 40%; animation-delay: -.2s; }
.ko-barras span:nth-child(2) { height: 65%; animation-delay: -1.1s; }
.ko-barras span:nth-child(3) { height: 50%; animation-delay: -.6s; }
.ko-barras span:nth-child(4) { height: 85%; animation-delay: -1.8s; background: linear-gradient(180deg, #ffffff, #93c5fd); }
.ko-barras span:nth-child(5) { height: 60%; animation-delay: -.9s; }
.ko-barras span:nth-child(6) { height: 72%; animation-delay: -2.3s; }
.ko-barras span:nth-child(7) { height: 55%; animation-delay: -1.5s; }
@keyframes koBarra { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
/* Etiquetas flotantes */
.ko-chips { display: flex; flex-direction: column; gap: 10px; }
.ko-chip {
    display: inline-flex; align-items: center; gap: 9px; width: max-content;
    padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px);
    animation: koFlota 5s ease-in-out infinite, koAparece .6s ease-out both;
}
.ko-chip i { color: #93c5fd; }
.ko-chip.c1 { animation-delay: 0s, .15s; }
.ko-chip.c2 { animation-delay: -1.2s, .3s; margin-left: 22px; }
.ko-chip.c3 { animation-delay: -2.4s, .45s; }
.ko-chip.c4 { animation-delay: -3.6s, .6s; margin-left: 22px; }
@keyframes koFlota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes koAparece { from { opacity: 0; } to { opacity: 1; } }
/* Quien pidió menos movimiento en su computadora: todo quieto */
@media (prefers-reduced-motion: reduce) {
    .left-panel, .left-panel::before, .left-panel::after, .ko-mini, .ko-barras span, .ko-chip { animation: none !important; }
}
/* Pantallas bajas o angostas: sin las piezas animadas (queda el fondo) */
@media (max-height: 640px), (max-width: 1000px) { .ko-anim { display: none; } }

@media (max-width: 768px) { .left-panel { padding: 32px 24px !important; } .left-panel h1 { font-size: 1.9em !important; } }
@media (max-width: 420px) { .IdUsuario .ko-dos { grid-template-columns: 1fr; } }
