feat(ui): add glassmorphism design to payment qr modal and login card with rollback backups
This commit is contained in:
@@ -6337,3 +6337,337 @@ body.dark-mode .admin-dash-bar-track {
|
||||
margin-top: 8px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
DISEÑO GLASSMORPHISM INMERSIVO (2026 FROSTED GLASS & SPECULAR GLOW)
|
||||
Aplicado a:
|
||||
1. El Modal Inmersivo del Código QR de Pago (#modalQr)
|
||||
2. La Tarjeta de Inicio de Sesión y Bienvenida (#viewLogin & #loginBottomSheet)
|
||||
========================================================================== */
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
1. MODAL INMERSIVO QR DE PAGO
|
||||
-------------------------------------------------------------------------- */
|
||||
.modal-qr-sibopay-immersive.glassmorphic-qr-modal {
|
||||
background: radial-gradient(circle at 50% 16%, #0284c7 0%, #034870 42%, #021324 100%) !important;
|
||||
backdrop-filter: blur(24px) !important;
|
||||
-webkit-backdrop-filter: blur(24px) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-qr-modal .qr-immersive-bg-header {
|
||||
background: transparent !important;
|
||||
box-shadow: none !important;
|
||||
border-bottom-left-radius: 0 !important;
|
||||
border-bottom-right-radius: 0 !important;
|
||||
}
|
||||
|
||||
.glassmorphic-brand-logo {
|
||||
background: rgba(255, 255, 255, 0.18) !important;
|
||||
backdrop-filter: blur(14px) !important;
|
||||
-webkit-backdrop-filter: blur(14px) !important;
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
|
||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 1.5px 1px rgba(255, 255, 255, 0.7) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-qr-card {
|
||||
background: rgba(255, 255, 255, 0.14) !important;
|
||||
backdrop-filter: blur(32px) saturate(190%) !important;
|
||||
-webkit-backdrop-filter: blur(32px) saturate(190%) !important;
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.38) !important;
|
||||
border-radius: 30px !important;
|
||||
box-shadow: 0 32px 64px -10px rgba(0, 0, 0, 0.5),
|
||||
inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.75),
|
||||
inset 0 -1.5px 1px 0 rgba(0, 0, 0, 0.25) !important;
|
||||
padding: 26px 22px 24px 22px !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
body.dark-mode .glassmorphic-qr-card {
|
||||
background: rgba(15, 23, 42, 0.6) !important;
|
||||
border-color: rgba(255, 255, 255, 0.3) !important;
|
||||
box-shadow: 0 32px 70px rgba(0, 0, 0, 0.65), inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.55) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-title-badge {
|
||||
display: inline-block;
|
||||
padding: 6px 18px;
|
||||
border-radius: 9999px;
|
||||
background: rgba(255, 255, 255, 0.14) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.32) !important;
|
||||
color: #ffffff !important;
|
||||
font-size: 0.88rem !important;
|
||||
font-weight: 900 !important;
|
||||
letter-spacing: 1.5px !important;
|
||||
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
|
||||
margin-bottom: 18px !important;
|
||||
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
|
||||
.glassmorphic-qr-frame {
|
||||
background: #ffffff !important;
|
||||
border-radius: 22px !important;
|
||||
padding: 14px !important;
|
||||
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.35) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-qr-frame .qr-frame-corner {
|
||||
border-color: #0284c7 !important;
|
||||
width: 26px !important;
|
||||
height: 26px !important;
|
||||
}
|
||||
|
||||
.glassmorphic-token-pill {
|
||||
margin-top: 18px !important;
|
||||
display: inline-block;
|
||||
background: rgba(0, 0, 0, 0.45) !important;
|
||||
backdrop-filter: blur(12px) !important;
|
||||
-webkit-backdrop-filter: blur(12px) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.3) !important;
|
||||
color: #ffffff !important;
|
||||
padding: 8px 18px !important;
|
||||
border-radius: 9999px !important;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
|
||||
font-size: 0.95rem !important;
|
||||
font-weight: 800 !important;
|
||||
letter-spacing: 1px !important;
|
||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-btn-pill {
|
||||
background: rgba(255, 255, 255, 0.2) !important;
|
||||
backdrop-filter: blur(16px) !important;
|
||||
-webkit-backdrop-filter: blur(16px) !important;
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
|
||||
color: #ffffff !important;
|
||||
border-radius: 9999px !important;
|
||||
height: 52px !important;
|
||||
font-size: 1.05rem !important;
|
||||
font-weight: 800 !important;
|
||||
letter-spacing: 0.4px !important;
|
||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset 0 1.5px 1px rgba(255, 255, 255, 0.6) !important;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.glassmorphic-btn-pill:hover,
|
||||
.glassmorphic-btn-pill:active {
|
||||
background: rgba(255, 255, 255, 0.32) !important;
|
||||
border-color: rgba(255, 255, 255, 0.8) !important;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1.5px 1px rgba(255, 255, 255, 0.8) !important;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
2. PANTALLA DE BIENVENIDA Y TARJETA DE LOGIN / REGISTRO
|
||||
-------------------------------------------------------------------------- */
|
||||
.splash-welcome-screen.glassmorphic-welcome-screen {
|
||||
background: radial-gradient(circle at 50% 12%, #0284c7 0%, #034f7c 45%, #021a36 100%) !important;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.glassmorphic-welcome-screen .splash-content-wrap {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
backdrop-filter: blur(24px) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.25);
|
||||
border-radius: 36px;
|
||||
padding: 44px 36px;
|
||||
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 1.5px 1px rgba(255, 255, 255, 0.4);
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.glassmorphic-btn-splash-primary {
|
||||
background: #ffffff !important;
|
||||
color: #0284c7 !important;
|
||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), inset 0 1.5px 1px #ffffff !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.8) !important;
|
||||
border-radius: 9999px !important;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-btn-splash-primary:hover,
|
||||
.glassmorphic-btn-splash-primary:active {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-btn-splash-secondary {
|
||||
background: rgba(255, 255, 255, 0.16) !important;
|
||||
backdrop-filter: blur(14px) !important;
|
||||
-webkit-backdrop-filter: blur(14px) !important;
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
|
||||
color: #ffffff !important;
|
||||
border-radius: 9999px !important;
|
||||
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-btn-splash-secondary:hover,
|
||||
.glassmorphic-btn-splash-secondary:active {
|
||||
background: rgba(255, 255, 255, 0.28) !important;
|
||||
border-color: rgba(255, 255, 255, 0.8) !important;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3) !important;
|
||||
}
|
||||
|
||||
/* Tarjeta de Login (Bottom Sheet & Modal en Escritorio) */
|
||||
@media (min-width: 640px) {
|
||||
.bottom-sheet-backdrop {
|
||||
align-items: center !important;
|
||||
padding: 24px !important;
|
||||
}
|
||||
.bottom-sheet-card.glassmorphic-login-card {
|
||||
border-radius: 32px !important;
|
||||
border-bottom: 1.5px solid rgba(255, 255, 255, 0.25) !important;
|
||||
max-height: 88vh;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom-sheet-card.glassmorphic-login-card,
|
||||
.login-card.glassmorphic-login-card {
|
||||
background: rgba(15, 23, 42, 0.82) !important;
|
||||
backdrop-filter: blur(36px) saturate(200%) !important;
|
||||
-webkit-backdrop-filter: blur(36px) saturate(200%) !important;
|
||||
border-top: 1.5px solid rgba(255, 255, 255, 0.45) !important;
|
||||
border-left: 1.5px solid rgba(255, 255, 255, 0.25) !important;
|
||||
border-right: 1.5px solid rgba(255, 255, 255, 0.25) !important;
|
||||
box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.55),
|
||||
inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.6) !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .bottom-sheet-pill-handle {
|
||||
background: rgba(255, 255, 255, 0.35) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .bottom-sheet-header {
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card #bottomSheetTitle {
|
||||
color: #ffffff !important;
|
||||
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .bottom-sheet-close-btn {
|
||||
background: rgba(255, 255, 255, 0.12) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.25) !important;
|
||||
color: #ffffff !important;
|
||||
border-radius: 50% !important;
|
||||
transition: all 0.15s ease !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .bottom-sheet-close-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.25) !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-form-group label {
|
||||
color: rgba(255, 255, 255, 0.95) !important;
|
||||
font-weight: 700 !important;
|
||||
font-size: 0.88rem !important;
|
||||
margin-bottom: 6px !important;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-input {
|
||||
background: rgba(255, 255, 255, 0.12) !important;
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.26) !important;
|
||||
color: #ffffff !important;
|
||||
border-radius: 14px !important;
|
||||
padding: 12px 16px !important;
|
||||
font-size: 0.95rem !important;
|
||||
backdrop-filter: blur(12px) !important;
|
||||
-webkit-backdrop-filter: blur(12px) !important;
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
|
||||
transition: all 0.2s ease !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-input::placeholder {
|
||||
color: rgba(255, 255, 255, 0.45) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-input:focus {
|
||||
background: rgba(255, 255, 255, 0.18) !important;
|
||||
border-color: #38bdf8 !important;
|
||||
outline: none !important;
|
||||
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-submit-btn {
|
||||
background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.4) !important;
|
||||
color: #ffffff !important;
|
||||
box-shadow: 0 10px 25px rgba(2, 132, 199, 0.5), inset 0 1.5px 1px rgba(255, 255, 255, 0.6) !important;
|
||||
border-radius: 14px !important;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-submit-btn:hover {
|
||||
filter: brightness(1.1);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 14px 32px rgba(2, 132, 199, 0.6), inset 0 1.5px 1px rgba(255, 255, 255, 0.8) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card #loginErrorMsg,
|
||||
.glassmorphic-login-card #registerErrorMsg {
|
||||
background: rgba(239, 68, 68, 0.25) !important;
|
||||
border: 1.5px solid rgba(248, 113, 113, 0.5) !important;
|
||||
color: #fecaca !important;
|
||||
backdrop-filter: blur(10px) !important;
|
||||
-webkit-backdrop-filter: blur(10px) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-register-banner {
|
||||
background: rgba(255, 255, 255, 0.1) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.22) !important;
|
||||
border-radius: 14px !important;
|
||||
color: #ffffff !important;
|
||||
backdrop-filter: blur(10px) !important;
|
||||
-webkit-backdrop-filter: blur(10px) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-register-banner strong {
|
||||
color: #38bdf8 !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-register-banner span {
|
||||
color: rgba(255, 255, 255, 0.85) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card p {
|
||||
color: rgba(255, 255, 255, 0.8) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card button[onclick*="switchSheetView"] {
|
||||
color: #38bdf8 !important;
|
||||
text-shadow: 0 1px 4px rgba(56, 189, 248, 0.4);
|
||||
}
|
||||
|
||||
.glassmorphic-login-card details {
|
||||
border-top-color: rgba(255, 255, 255, 0.15) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card details summary {
|
||||
color: rgba(255, 255, 255, 0.75) !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-demo-btn {
|
||||
background: rgba(255, 255, 255, 0.1) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2) !important;
|
||||
color: #ffffff !important;
|
||||
border-radius: 10px !important;
|
||||
backdrop-filter: blur(8px) !important;
|
||||
transition: all 0.15s ease !important;
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-demo-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.22) !important;
|
||||
border-color: rgba(255, 255, 255, 0.4) !important;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.glassmorphic-login-card .login-demo-btn span {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
+29
-23
@@ -22,8 +22,11 @@
|
||||
</head>
|
||||
<body class="">
|
||||
|
||||
<!-- VISTA DE LOGIN: WELCOME SPLASH SCREEN & BOTTOM SHEET (ESTILO ORDER-EAT / SIBOPAY) -->
|
||||
<div id="viewLogin" class="splash-welcome-screen" style="display: none;">
|
||||
<!-- ========================================================================== -->
|
||||
<!-- VISTA DE LOGIN: DISEÑO GLASSMORPHISM INMERSIVO (FROSTED GLASS & SPECULAR GLOW) -->
|
||||
<!-- NOTA DE ROLLBACK: Respaldo original en public/templates/backup-viewLogin-original.html -->
|
||||
<!-- ========================================================================== -->
|
||||
<div id="viewLogin" class="splash-welcome-screen glassmorphic-welcome-screen" style="display: none;">
|
||||
<!-- Patrón de alimentos en marca de agua difuminada -->
|
||||
<div class="splash-doodle-bg"></div>
|
||||
|
||||
@@ -40,11 +43,11 @@
|
||||
|
||||
<!-- Sección inferior: Botones de acción y Disclaimer -->
|
||||
<div class="splash-actions-box">
|
||||
<button type="button" class="splash-btn-primary" onclick="openLoginSheet('login')">
|
||||
<button type="button" class="splash-btn-primary glassmorphic-btn-splash-primary" onclick="openLoginSheet('login')">
|
||||
Iniciar Sesión
|
||||
</button>
|
||||
|
||||
<button type="button" class="splash-btn-secondary" onclick="openLoginSheet('register')">
|
||||
<button type="button" class="splash-btn-secondary glassmorphic-btn-splash-secondary" onclick="openLoginSheet('register')">
|
||||
Registrarse
|
||||
</button>
|
||||
|
||||
@@ -59,7 +62,7 @@
|
||||
|
||||
<!-- BOTTOM SHEET: VENTANA INFERIOR DESLIZABLE PARA LOGIN Y REGISTRO -->
|
||||
<div id="loginBottomSheet" class="bottom-sheet-backdrop" onclick="closeLoginSheet(event)">
|
||||
<div class="bottom-sheet-card" onclick="event.stopPropagation()">
|
||||
<div class="bottom-sheet-card glassmorphic-login-card" onclick="event.stopPropagation()">
|
||||
<div class="bottom-sheet-pill-handle"></div>
|
||||
|
||||
<div class="bottom-sheet-header">
|
||||
@@ -128,13 +131,13 @@
|
||||
|
||||
<!-- CONTENIDO 2: REGISTRO DE PADRES -->
|
||||
<div id="sheetContentRegister" style="display: none;">
|
||||
<div style="background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border: 1.5px solid #bae6fd; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px;">
|
||||
<div style="width: 36px; height: 36px; border-radius: 10px; background: white; border: 1px solid #bae6fd; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 4px;">
|
||||
<div class="login-register-banner" style="background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%); border: 1.5px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px;">
|
||||
<div style="width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 4px;">
|
||||
<img src="/img/sibopay-emblem.png" alt="SiboPay" style="width: 100%; height: 100%; object-fit: contain;">
|
||||
</div>
|
||||
<div>
|
||||
<strong style="color: #0369a1; font-size: 0.86rem; display: block; font-weight: 800;">Registro de Padres o Encargados</strong>
|
||||
<span style="font-size: 0.72rem; color: #475569; display: block;">Crea tu cuenta para vincular a tus hijos y recargarles saldo con SINPE móvil.</span>
|
||||
<strong style="color: #38bdf8; font-size: 0.86rem; display: block; font-weight: 800;">Registro de Padres o Encargados</strong>
|
||||
<span style="font-size: 0.72rem; color: rgba(255,255,255,0.85); display: block;">Crea tu cuenta para vincular a tus hijos y recargarles saldo con SINPE móvil.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2314,12 +2317,15 @@
|
||||
|
||||
</div>
|
||||
|
||||
<!-- MODAL INMERSIVO: CÓDIGO QR PARA PRESENTAR EN LA SODA (DISEÑO SIBOPAY EXACTO) -->
|
||||
<div class="modal-qr-sibopay-immersive" id="modalQr" style="display: none;" onclick="closeQrModal(event)">
|
||||
<!-- FONDO SUPERIOR CELESTE CON LOGO Y MARCA SIBOPAY -->
|
||||
<div class="qr-immersive-bg-header">
|
||||
<!-- ========================================================================== -->
|
||||
<!-- MODAL INMERSIVO QR: DISEÑO GLASSMORPHISM INMERSIVO (FROSTED GLASS & GLOW) -->
|
||||
<!-- NOTA DE ROLLBACK: Respaldo original en public/templates/backup-modalQr-original.html -->
|
||||
<!-- ========================================================================== -->
|
||||
<div class="modal-qr-sibopay-immersive glassmorphic-qr-modal" id="modalQr" style="display: none;" onclick="closeQrModal(event)">
|
||||
<!-- FONDO SUPERIOR CON LOGO Y MARCA SIBOPAY -->
|
||||
<div class="qr-immersive-bg-header glassmorphic-qr-header">
|
||||
<div class="qr-immersive-brand-header">
|
||||
<div class="qr-immersive-brand-logo-wrap">
|
||||
<div class="qr-immersive-brand-logo-wrap glassmorphic-brand-logo">
|
||||
<img src="/img/sibopay-emblem.png" alt="SiboPay" class="qr-immersive-brand-logo">
|
||||
</div>
|
||||
<div class="qr-immersive-brand-title">
|
||||
@@ -2328,18 +2334,18 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- CONTENEDOR CENTRAL: TARJETA BLANCA Y BOTÓN CERRAR -->
|
||||
<!-- CONTENEDOR CENTRAL: TARJETA DE CRISTAL ESMERILADO Y BOTÓN CERRAR -->
|
||||
<div class="qr-immersive-content" onclick="event.stopPropagation()">
|
||||
<div class="qr-immersive-card">
|
||||
<div class="qr-card-header-title">MI CARNÉ SIBOPAY</div>
|
||||
<div class="qr-immersive-card glassmorphic-qr-card">
|
||||
<div class="qr-card-header-title glassmorphic-title-badge">MI CARNÉ SIBOPAY</div>
|
||||
|
||||
<!-- Banner especial cuando el límite diario fue alcanzado pero tiene preórdenes -->
|
||||
<div id="qrPreorderOnlyBanner" style="display: none; background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e40af; border-radius: 10px; padding: 7px 10px; margin-bottom: 10px; font-size: 0.75rem; text-align: center; font-weight: 700; line-height: 1.35;">
|
||||
<div id="qrPreorderOnlyBanner" style="display: none; background: rgba(59, 130, 246, 0.15); border: 1.5px solid rgba(147, 197, 253, 0.4); color: #e0f2fe; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-size: 0.75rem; text-align: center; font-weight: 700; line-height: 1.35; backdrop-filter: blur(8px);">
|
||||
📦 Válido exclusivamente para retirar tu Pre-Orden en la soda.<br>
|
||||
<span style="font-size: 0.70rem; color: #3b82f6;">Compras nuevas en mostrador bloqueadas por límite diario.</span>
|
||||
<span style="font-size: 0.70rem; color: #93c5fd;">Compras nuevas en mostrador bloqueadas por límite diario.</span>
|
||||
</div>
|
||||
|
||||
<div class="qr-scanner-frame-wrapper">
|
||||
<div class="qr-scanner-frame-wrapper glassmorphic-qr-frame">
|
||||
<div class="qr-frame-corner top-left"></div>
|
||||
<div class="qr-frame-corner top-right"></div>
|
||||
<div class="qr-frame-corner bottom-left"></div>
|
||||
@@ -2353,13 +2359,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="qr-card-token-text" id="qrTokenDisplay">
|
||||
<div class="qr-card-token-text glassmorphic-token-pill" id="qrTokenDisplay">
|
||||
CODIGO-QR
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- BOTÓN CELESTE TIPO PÍLDORA -->
|
||||
<button type="button" onclick="closeQrModal()" class="qr-immersive-btn-close">
|
||||
<!-- BOTÓN TIPO PÍLDORA DE CRISTAL -->
|
||||
<button type="button" onclick="closeQrModal()" class="qr-immersive-btn-close glassmorphic-btn-pill">
|
||||
Cerrar
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
<!-- MODAL INMERSIVO: CÓDIGO QR PARA PRESENTAR EN LA SODA (DISEÑO SIBOPAY EXACTO) -->
|
||||
<div class="modal-qr-sibopay-immersive" id="modalQr" style="display: none;" onclick="closeQrModal(event)">
|
||||
<!-- FONDO SUPERIOR CELESTE CON LOGO Y MARCA SIBOPAY -->
|
||||
<div class="qr-immersive-bg-header">
|
||||
<div class="qr-immersive-brand-header">
|
||||
<div class="qr-immersive-brand-logo-wrap">
|
||||
<img src="/img/sibopay-emblem.png" alt="SiboPay" class="qr-immersive-brand-logo">
|
||||
</div>
|
||||
<div class="qr-immersive-brand-title">
|
||||
<span>Sibo</span><strong class="brand-pay-text">Pay</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- CONTENEDOR CENTRAL: TARJETA BLANCA Y BOTÓN CERRAR -->
|
||||
<div class="qr-immersive-content" onclick="event.stopPropagation()">
|
||||
<div class="qr-immersive-card">
|
||||
<div class="qr-card-header-title">MI CARNÉ SIBOPAY</div>
|
||||
|
||||
<!-- Banner especial cuando el lÃmite diario fue alcanzado pero tiene preórdenes -->
|
||||
<div id="qrPreorderOnlyBanner" style="display: none; background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e40af; border-radius: 10px; padding: 7px 10px; margin-bottom: 10px; font-size: 0.75rem; text-align: center; font-weight: 700; line-height: 1.35;">
|
||||
📦 Válido exclusivamente para retirar tu Pre-Orden en la soda.<br>
|
||||
<span style="font-size: 0.70rem; color: #3b82f6;">Compras nuevas en mostrador bloqueadas por lÃmite diario.</span>
|
||||
</div>
|
||||
|
||||
<div class="qr-scanner-frame-wrapper">
|
||||
<div class="qr-frame-corner top-left"></div>
|
||||
<div class="qr-frame-corner top-right"></div>
|
||||
<div class="qr-frame-corner bottom-left"></div>
|
||||
<div class="qr-frame-corner bottom-right"></div>
|
||||
|
||||
<img id="qrDisplayImg" class="qr-immersive-code-img" src="" alt="Código QR">
|
||||
|
||||
<!-- LOGO DE LA 'S' EN EL CENTRO DEL QR -->
|
||||
<div class="qr-center-logo-badge" title="SiboPay">
|
||||
<img src="/img/sibopay-emblem.png" alt="S" class="qr-center-logo-img">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="qr-card-token-text" id="qrTokenDisplay">
|
||||
CODIGO-QR
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- BOTÓN CELESTE TIPO PÃLDORA -->
|
||||
<button type="button" onclick="closeQrModal()" class="qr-immersive-btn-close">
|
||||
Cerrar
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,594 @@
|
||||
/* ==========================================================================
|
||||
BACKUP ORIGINAL: MODAL QR SIBOPAY (ESTILO ORIGINAL)
|
||||
========================================================================== */
|
||||
/* ==========================================================================
|
||||
MODAL QR INMERSIVO SIBOPAY (DISEÑO MÓVIL EXACTO A LA REFERENCIA)
|
||||
========================================================================== */
|
||||
.modal-qr-sibopay-immersive {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 9999;
|
||||
background: #f1f5f9;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
padding: calc(16px + var(--safe-top)) 20px calc(24px + var(--safe-bottom)) 20px;
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
animation: fadeIn 0.2s ease;
|
||||
}
|
||||
|
||||
body.dark-mode .modal-qr-sibopay-immersive {
|
||||
background: #0b1120;
|
||||
}
|
||||
|
||||
.qr-immersive-bg-header {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 52%;
|
||||
min-height: 310px;
|
||||
background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
|
||||
border-bottom-left-radius: 36px;
|
||||
border-bottom-right-radius: 36px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
padding-top: calc(48px + var(--safe-top));
|
||||
box-sizing: border-box;
|
||||
z-index: 1;
|
||||
box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.qr-immersive-brand-header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.qr-immersive-brand-logo-wrap {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 50%;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 4px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.qr-immersive-brand-logo {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 50%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qr-immersive-brand-title {
|
||||
font-size: 2.15rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.6px;
|
||||
line-height: 1.1;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.qr-immersive-brand-title span {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.qr-immersive-brand-title .brand-pay-text {
|
||||
color: #38bdf8;
|
||||
font-weight: 900;
|
||||
margin-left: 1px;
|
||||
text-shadow: 0 2px 10px rgba(56, 189, 248, 0.5);
|
||||
}
|
||||
|
||||
.qr-immersive-content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 100%;
|
||||
max-width: 325px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
margin-top: calc(152px + var(--safe-top));
|
||||
animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.qr-immersive-card {
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
border-radius: 26px;
|
||||
padding: 24px 20px 22px 20px;
|
||||
text-align: center;
|
||||
box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
|
||||
border: 1px solid rgba(226, 232, 240, 0.9);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body.dark-mode .qr-immersive-card {
|
||||
background: #1e293b;
|
||||
border-color: #334155;
|
||||
box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.qr-card-header-title {
|
||||
font-size: 0.98rem;
|
||||
font-weight: 900;
|
||||
color: #1e293b;
|
||||
letter-spacing: 0.8px;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
body.dark-mode .qr-card-header-title {
|
||||
color: #f1f5f9;
|
||||
}
|
||||
|
||||
.qr-scanner-frame-wrapper {
|
||||
position: relative;
|
||||
width: 224px;
|
||||
height: 224px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.qr-frame-corner {
|
||||
position: absolute;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-color: #94a3b8;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
body.dark-mode .qr-frame-corner {
|
||||
border-color: #64748b;
|
||||
}
|
||||
|
||||
.qr-frame-corner.top-left {
|
||||
top: 0;
|
||||
left: 0;
|
||||
border-width: 3.5px 0 0 3.5px;
|
||||
border-top-left-radius: 8px;
|
||||
}
|
||||
|
||||
.qr-frame-corner.top-right {
|
||||
top: 0;
|
||||
right: 0;
|
||||
border-width: 3.5px 3.5px 0 0;
|
||||
border-top-right-radius: 8px;
|
||||
}
|
||||
|
||||
.qr-frame-corner.bottom-left {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
border-width: 0 0 3.5px 3.5px;
|
||||
border-bottom-left-radius: 8px;
|
||||
}
|
||||
|
||||
.qr-frame-corner.bottom-right {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
border-width: 0 3.5px 3.5px 0;
|
||||
border-bottom-right-radius: 8px;
|
||||
}
|
||||
|
||||
.qr-immersive-code-img {
|
||||
width: 196px;
|
||||
height: 196px;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.qr-center-logo-badge {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
background: #ffffff;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 3px;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
|
||||
z-index: 10;
|
||||
border: 2.5px solid #ffffff;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.qr-center-logo-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 50%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.qr-card-token-text {
|
||||
margin-top: 18px;
|
||||
font-family: monospace;
|
||||
font-size: 0.92rem;
|
||||
font-weight: 800;
|
||||
color: #64748b;
|
||||
letter-spacing: 0.6px;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
body.dark-mode .qr-card-token-text {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.qr-immersive-btn-close {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
border-radius: 999px;
|
||||
background: #0284c7;
|
||||
color: #ffffff;
|
||||
border: none;
|
||||
font-size: 1.05rem;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 8px 20px rgba(2, 132, 199, 0.38);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.qr-immersive-btn-close:hover {
|
||||
background: #0369a1;
|
||||
box-shadow: 0 10px 24px rgba(2, 132, 199, 0.48);
|
||||
}
|
||||
|
||||
.qr-immersive-btn-close:active {
|
||||
transform: scale(0.98);
|
||||
|
||||
/* ==========================================================================
|
||||
BACKUP ORIGINAL: LOGIN SPLASH & BOTTOM SHEET (ESTILO ORIGINAL)
|
||||
========================================================================== */
|
||||
/* ==========================================================================
|
||||
VISTA DE LOGIN: WELCOME SPLASH & BOTTOM SHEET (ESTILO ORDER-EAT / SIBOPAY)
|
||||
========================================================================== */
|
||||
.splash-welcome-screen {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: linear-gradient(170deg, #0284c7 0%, #0369a1 100%);
|
||||
z-index: 9999;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* Patrón de siluetas de alimentos difuminado (Marca de agua animada / Floating Watermark) */
|
||||
.splash-doodle-bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
background-image: url("data:image/svg+xml,%3Csvg width='130' height='130' viewBox='0 0 130 130' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' opacity='0.16'%3E%3Cpath d='M15 32 h28 a3 3 0 0 1 3 3 v12 a10 10 0 0 1 -10 10 h-14 a10 10 0 0 1 -10 -10 v-12 a3 3 0 0 1 3 -3 z'/%3E%3Cpath d='M24 26 c0 -3 10 -3 10 0'/%3E%3Cpath d='M9 37 h6'/%3E%3Cpath d='M46 37 h6'/%3E%3Cpath d='M92 26 c-6 -8 -16 0 -16 8 c0 10 12 18 16 20 c4 -2 16 -10 16 -20 c0 -8 -10 -16 -16 -8'/%3E%3Cpath d='M92 26 c0 -5 4 -7 7 -8'/%3E%3Cpath d='M20 102 c-4 -4 -3 -10 2 -12 c0 -6 8 -8 12 -4 c4 -6 14 -4 14 3 c4 2 5 8 1 12 c-2 2 -4 3 -7 3 h-15 c-3 0 -5 -1 -7 -2 z'/%3E%3Cpath d='M30 105 v12'/%3E%3Cpath d='M82 86 v24'/%3E%3Cpath d='M78 86 v8 c0 3 8 3 8 0 v-8'/%3E%3Cpath d='M82 94 v16'/%3E%3Cpath d='M98 86 c-3 0 -5 4 -5 9 c0 4 3 6 5 6 v17'/%3E%3Cpath d='M98 86 v32'/%3E%3Cellipse cx='60' cy='62' rx='13' ry='5'/%3E%3Cpath d='M49 62 c2 6 20 6 22 0'/%3E%3C/g%3E%3C/svg%3E");
|
||||
background-size: 130px 130px;
|
||||
background-repeat: repeat;
|
||||
animation: floatingDoodles 55s linear infinite;
|
||||
will-change: background-position;
|
||||
}
|
||||
|
||||
@keyframes floatingDoodles {
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
100% {
|
||||
background-position: 520px -260px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.splash-doodle-bg {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
.splash-content-wrap {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 40px 24px calc(28px + env(safe-area-inset-bottom, 16px));
|
||||
max-width: 440px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.splash-brand-hero {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.splash-emblem-wrap {
|
||||
width: 136px;
|
||||
height: 136px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.22);
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
border: 3.5px solid rgba(255, 255, 255, 0.45);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 16px;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
|
||||
margin-bottom: 22px;
|
||||
animation: pulse 4s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.splash-emblem-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
|
||||
}
|
||||
|
||||
.splash-title {
|
||||
color: #ffffff;
|
||||
font-size: 3.1rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: -1.2px;
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.splash-tagline {
|
||||
color: rgba(255, 255, 255, 0.95);
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
margin: 10px 0 0 0;
|
||||
letter-spacing: 0.3px;
|
||||
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
|
||||
}
|
||||
|
||||
.splash-actions-box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.splash-btn-primary {
|
||||
width: 100%;
|
||||
height: 54px;
|
||||
border-radius: 9999px;
|
||||
background: #ffffff;
|
||||
color: #0284c7;
|
||||
border: none;
|
||||
font-size: 1.05rem;
|
||||
font-weight: 900;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.splash-btn-primary:active {
|
||||
transform: scale(0.97);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.splash-btn-secondary {
|
||||
width: 100%;
|
||||
height: 52px;
|
||||
border-radius: 9999px;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
color: #ffffff;
|
||||
border: 2px solid rgba(255, 255, 255, 0.85);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
font-size: 1.02rem;
|
||||
font-weight: 900;
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease, background 0.15s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.splash-btn-secondary:active {
|
||||
transform: scale(0.97);
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
.splash-disclaimer {
|
||||
color: rgba(255, 255, 255, 0.88);
|
||||
font-size: 0.76rem;
|
||||
text-align: center;
|
||||
margin: 6px 0 0 0;
|
||||
line-height: 1.5;
|
||||
font-weight: 600;
|
||||
max-width: 380px;
|
||||
}
|
||||
|
||||
.splash-disclaimer a {
|
||||
color: #ffffff;
|
||||
font-weight: 900;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.splash-disclaimer a:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
BOTTOM SHEET (VENTANA INFERIOR DESLIZABLE)
|
||||
========================================================================== */
|
||||
.bottom-sheet-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(15, 23, 42, 0.65);
|
||||
backdrop-filter: blur(5px);
|
||||
-webkit-backdrop-filter: blur(5px);
|
||||
z-index: 10000;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s ease;
|
||||
}
|
||||
|
||||
.bottom-sheet-backdrop.open {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.bottom-sheet-card {
|
||||
width: 100%;
|
||||
max-width: 460px;
|
||||
background: #ffffff;
|
||||
border-top-left-radius: 28px;
|
||||
border-top-right-radius: 28px;
|
||||
padding: 14px 22px calc(24px + env(safe-area-inset-bottom, 12px));
|
||||
box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.32);
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
box-sizing: border-box;
|
||||
transform: translateY(100%);
|
||||
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.bottom-sheet-backdrop.open .bottom-sheet-card {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.bottom-sheet-pill-handle {
|
||||
width: 44px;
|
||||
height: 5px;
|
||||
border-radius: 3px;
|
||||
background: #cbd5e1;
|
||||
margin: 0 auto 14px;
|
||||
}
|
||||
|
||||
.bottom-sheet-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid #f1f5f9;
|
||||
}
|
||||
|
||||
.bottom-sheet-close-btn {
|
||||
background: #f1f5f9;
|
||||
border: none;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
font-size: 1.1rem;
|
||||
color: #64748b;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.bottom-sheet-close-btn:hover {
|
||||
background: #e2e8f0;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
VISTA DE LOGIN CLÃSICA (COMPATIBILIDAD Y MEMORIA)
|
||||
========================================================================== */
|
||||
.login-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: radial-gradient(circle at 50% 10%, #0284c7 0%, #0f172a 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 16px;
|
||||
z-index: 9999;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
background: var(--card-bg, #ffffff);
|
||||
color: var(--text-main, #0f172a);
|
||||
border-radius: 24px;
|
||||
padding: 28px 24px;
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
animation: fadeIn 0.25s ease-out;
|
||||
}
|
||||
|
||||
.login-brand {
|
||||
text-align: center;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.login-logo {
|
||||
font-size: 3rem;
|
||||
display: inline-block;
|
||||
background: #e0f2fe;
|
||||
padding: 12px;
|
||||
border-radius: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.login-title {
|
||||
font-size: 1.6rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.5px;
|
||||
color: #0f172a;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.login-subtitle {
|
||||
font-size: 0.8rem;
|
||||
color: #64748b;
|
||||
margin-top: 4px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.login-form-group {
|
||||
margin-bottom: 14px;
|
||||
@@ -0,0 +1,158 @@
|
||||
<!-- VISTA DE LOGIN: WELCOME SPLASH SCREEN & BOTTOM SHEET (ESTILO ORDER-EAT / SIBOPAY) -->
|
||||
<div id="viewLogin" class="splash-welcome-screen" style="display: none;">
|
||||
<!-- Patrón de alimentos en marca de agua difuminada -->
|
||||
<div class="splash-doodle-bg"></div>
|
||||
|
||||
<!-- Contenido principal centrado -->
|
||||
<div class="splash-content-wrap">
|
||||
<!-- Sección superior/media: Emblema y Marca -->
|
||||
<div class="splash-brand-hero">
|
||||
<div class="splash-emblem-wrap">
|
||||
<img src="/img/sibopay-emblem.png" alt="SiboPay" class="splash-emblem-img">
|
||||
</div>
|
||||
<h1 class="splash-title">SiboPay</h1>
|
||||
<p class="splash-tagline">Sistema Digital de Pagos y Monedero Estudiantil</p>
|
||||
</div>
|
||||
|
||||
<!-- Sección inferior: Botones de acción y Disclaimer -->
|
||||
<div class="splash-actions-box">
|
||||
<button type="button" class="splash-btn-primary" onclick="openLoginSheet('login')">
|
||||
Iniciar Sesión
|
||||
</button>
|
||||
|
||||
<button type="button" class="splash-btn-secondary" onclick="openLoginSheet('register')">
|
||||
Registrarse
|
||||
</button>
|
||||
|
||||
<p class="splash-disclaimer">
|
||||
Al iniciar sesión y registrarse, acepta nuestros
|
||||
<a href="/terminos" target="_blank" rel="noopener noreferrer">Términos y Condiciones</a>
|
||||
y nuestra
|
||||
<a href="/privacidad" target="_blank" rel="noopener noreferrer">PolÃtica de Privacidad</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- BOTTOM SHEET: VENTANA INFERIOR DESLIZABLE PARA LOGIN Y REGISTRO -->
|
||||
<div id="loginBottomSheet" class="bottom-sheet-backdrop" onclick="closeLoginSheet(event)">
|
||||
<div class="bottom-sheet-card" onclick="event.stopPropagation()">
|
||||
<div class="bottom-sheet-pill-handle"></div>
|
||||
|
||||
<div class="bottom-sheet-header">
|
||||
<div style="display: flex; align-items: center; gap: 8px;">
|
||||
<img src="/img/sibopay-emblem.png" alt="SiboPay" style="width: 24px; height: 24px; object-fit: contain;">
|
||||
<h3 id="bottomSheetTitle" style="margin: 0; font-size: 1.22rem; font-weight: 800; color: #0f172a;">Iniciar Sesión</h3>
|
||||
</div>
|
||||
<button type="button" class="bottom-sheet-close-btn" onclick="closeLoginSheet()" title="Cerrar">✕</button>
|
||||
</div>
|
||||
|
||||
<!-- CONTENIDO 1: INICIAR SESIÓN -->
|
||||
<div id="sheetContentLogin">
|
||||
<form id="formLogin" onsubmit="handleLoginSubmit(event)">
|
||||
<div class="login-form-group">
|
||||
<label id="lblLoginUser" for="loginUsername">Usuario, Teléfono o Carné:</label>
|
||||
<input type="text" id="loginUsername" class="login-input" placeholder="Ej: padre, carlos_papa, 8888-1122 o mateo" required autocomplete="username">
|
||||
</div>
|
||||
|
||||
<div class="login-form-group">
|
||||
<label id="lblLoginPass" for="loginPassword">Contraseña o PIN:</label>
|
||||
<input type="password" id="loginPassword" class="login-input" placeholder="••••••••" required autocomplete="current-password">
|
||||
</div>
|
||||
|
||||
<div id="loginErrorMsg" style="display: none; background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; padding: 9px 12px; border-radius: 10px; font-size: 0.82rem; font-weight: 700; margin-bottom: 12px; text-align: center;"></div>
|
||||
|
||||
<button type="submit" id="btnLoginSubmit" class="login-submit-btn" style="display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 12px; font-weight: 800; font-size: 1rem; background: linear-gradient(135deg, #0284c7, #0369a1); color: white; border: none; cursor: pointer; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" x2="3" y1="12" y2="12"/></svg>
|
||||
<span id="lblBtnLoginText">Ingresar al Sistema</span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div style="text-align: center; margin-top: 14px;">
|
||||
<p style="font-size: 0.82rem; color: #64748b; margin: 0;">
|
||||
¿Aún no tienes cuenta?
|
||||
<button type="button" onclick="switchSheetView('register')" style="background: none; border: none; color: #0284c7; font-weight: 800; cursor: pointer; text-decoration: underline; font-size: 0.82rem; padding: 0;">RegÃstrate como Padre aquÃ</button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- ACCESOS RÃPIDOS DE PRUEBA DESPLEGABLES (DEMO) -->
|
||||
<details style="margin-top: 16px; border-top: 1px solid #f1f5f9; padding-top: 12px;">
|
||||
<summary style="font-size: 0.76rem; font-weight: 800; color: #64748b; cursor: pointer; text-align: center; outline: none;">
|
||||
⚡ Accesos rápidos de prueba (Demo 1-Click)
|
||||
</summary>
|
||||
<div class="login-demo-btns" style="margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;">
|
||||
<button type="button" class="login-demo-btn" onclick="quickFillLogin('dev', 'dev123')" style="border: 1.5px solid #0284c7; background: #f0f9ff; padding: 6px 4px; font-size: 0.72rem;">
|
||||
<span style="color: #0284c7; font-weight: 800;">Developer</span>
|
||||
</button>
|
||||
<button type="button" class="login-demo-btn" onclick="quickFillLogin('admin', 'admin123')" style="padding: 6px 4px; font-size: 0.72rem;">
|
||||
<span>Admin Soda</span>
|
||||
</button>
|
||||
<button type="button" class="login-demo-btn" onclick="quickFillLogin('cajero', 'cajero123')" style="padding: 6px 4px; font-size: 0.72rem;">
|
||||
<span>Cajero</span>
|
||||
</button>
|
||||
<button type="button" class="login-demo-btn" onclick="quickFillLogin('padre', 'padre123')" style="padding: 6px 4px; font-size: 0.72rem;">
|
||||
<span>Padre Demo</span>
|
||||
</button>
|
||||
<button type="button" class="login-demo-btn" onclick="quickFillLogin('mateo', '1234')" style="padding: 6px 4px; font-size: 0.72rem;">
|
||||
<span>Mateo (2°)</span>
|
||||
</button>
|
||||
<button type="button" class="login-demo-btn" onclick="quickFillLogin('sofia', '1234')" style="padding: 6px 4px; font-size: 0.72rem;">
|
||||
<span>SofÃa (3°)</span>
|
||||
</button>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
<!-- CONTENIDO 2: REGISTRO DE PADRES -->
|
||||
<div id="sheetContentRegister" style="display: none;">
|
||||
<div style="background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border: 1.5px solid #bae6fd; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px;">
|
||||
<div style="width: 36px; height: 36px; border-radius: 10px; background: white; border: 1px solid #bae6fd; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 4px;">
|
||||
<img src="/img/sibopay-emblem.png" alt="SiboPay" style="width: 100%; height: 100%; object-fit: contain;">
|
||||
</div>
|
||||
<div>
|
||||
<strong style="color: #0369a1; font-size: 0.86rem; display: block; font-weight: 800;">Registro de Padres o Encargados</strong>
|
||||
<span style="font-size: 0.72rem; color: #475569; display: block;">Crea tu cuenta para vincular a tus hijos y recargarles saldo con SINPE móvil.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="formRegisterPadre" onsubmit="handleRegisterPadreSubmit(event)">
|
||||
<div class="login-form-group">
|
||||
<label for="regNombre">Nombre y Apellidos:</label>
|
||||
<input type="text" id="regNombre" class="login-input" placeholder="Ej: Carlos Alvarado Castro" required autocomplete="name">
|
||||
</div>
|
||||
|
||||
<div class="login-form-group">
|
||||
<label for="regTelefono">Teléfono o Celular (para SINPE):</label>
|
||||
<input type="tel" id="regTelefono" class="login-input" placeholder="Ej: 8888-1122" required autocomplete="tel">
|
||||
</div>
|
||||
|
||||
<div class="login-form-group">
|
||||
<label for="regEmail">Correo Electrónico <span style="font-size: 0.72rem; color: #64748b;">(Opcional)</span>:</label>
|
||||
<input type="email" id="regEmail" class="login-input" placeholder="Ej: [email protected]" autocomplete="email">
|
||||
</div>
|
||||
|
||||
<div class="login-form-group">
|
||||
<label for="regUsername">Nombre de Usuario:</label>
|
||||
<input type="text" id="regUsername" class="login-input" placeholder="Ej: carlos_papa" required autocomplete="username">
|
||||
</div>
|
||||
|
||||
<div class="login-form-group">
|
||||
<label for="regPassword">Contraseña:</label>
|
||||
<input type="password" id="regPassword" class="login-input" placeholder="MÃnimo 4 caracteres" required autocomplete="new-password">
|
||||
</div>
|
||||
|
||||
<div id="registerErrorMsg" style="display: none; background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; padding: 8px 12px; border-radius: 10px; font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; text-align: center;"></div>
|
||||
|
||||
<button type="submit" id="btnRegisterSubmit" class="login-submit-btn" style="display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 12px; font-weight: 800; font-size: 1rem; background: linear-gradient(135deg, #0284c7, #0369a1); color: white; border: none; cursor: pointer; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="7" r="3.5"/><path d="M3 20v-1.5A4.5 4.5 0 0 1 7.5 14h3A4.5 4.5 0 0 1 15 18.5V20"/><circle cx="17.5" cy="7.5" r="2.5"/><path d="M15 14a3.5 3.5 0 0 1 5.5 3v3"/></svg>
|
||||
<span>Crear Cuenta de Padre y Entrar</span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div style="text-align: center; margin-top: 14px;">
|
||||
<p style="font-size: 0.82rem; color: #64748b; margin: 0;">
|
||||
¿Ya tienes cuenta registrada?
|
||||
<button type="button" onclick="switchSheetView('login')" style="background: none; border: none; color: #0284c7; font-weight: 800; cursor: pointer; text-decoration: underline; font-size: 0.82rem; padding: 0;">Inicia sesión aquÃ</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,37 +1,59 @@
|
||||
# Catálogo de Pantallas de Inicio de Sesión de SiboPay
|
||||
# Catálogo de Pantallas de Inicio de Sesión de SiboPay
|
||||
|
||||
Este documento actúa como la **memoria y registro de versiones** de pantallas de inicio de sesión de SiboPay. Cada diseño está preservado en código para que pueda ser reactivado cuando el administrador o el usuario lo solicite.
|
||||
Este documento actúa como la **memoria y registro de versiones** de pantallas de inicio de sesión de SiboPay. Cada diseño está preservado en código para que pueda ser reactivado cuando el administrador o el usuario lo solicite.
|
||||
|
||||
---
|
||||
|
||||
## 🎨 Opción 1: Clásico con Selector de Roles (Padre, Estudiante, Personal)
|
||||
## 🎨 Opción 1: Clásico con Selector de Roles (Padre, Estudiante, Personal)
|
||||
- **Archivo de Respaldo:** `public/templates/login-classic-roles.html`
|
||||
- **Estilo:** Tarjeta flotante central sobre fondo neutro con efecto blur.
|
||||
- **Características:**
|
||||
- Selector de pestaña superior: "Iniciar Sesión" y "Registro de Padres".
|
||||
- Selector visual interactivo "¿Quién eres?":
|
||||
- **Padre o Encargado** (ícono de familia)
|
||||
- **Estudiante Carné QR** (ícono de libreta/carné)
|
||||
- **Personal Soda / Caja** (ícono de local de comida/caja)
|
||||
- Formularios dinámicos que cambian placeholders y etiquetas según el rol seleccionado.
|
||||
- Accesos rápidos demo de 1-clic integrados en la tarjeta.
|
||||
- **Cómo restaurarlo:**
|
||||
Reemplazar el contenido de `<div id="viewLogin">` en `public/index.html` con el código almacenado en `public/templates/login-classic-roles.html`.
|
||||
- **CaracterÃsticas:**
|
||||
- Selector de pestaña superior: "Iniciar Sesión" y "Registro de Padres".
|
||||
- Selector visual interactivo "¿Quién eres?":
|
||||
- **Padre o Encargado** (Ãcono de familia)
|
||||
- **Estudiante Carné QR** (Ãcono de libreta/carné)
|
||||
- **Personal Soda / Caja** (Ãcono de local de comida/caja)
|
||||
- Formularios dinámicos que cambian placeholders y etiquetas según el rol seleccionado.
|
||||
- Accesos rápidos demo de 1-clic integrados en la tarjeta.
|
||||
- **Cómo restaurarlo:**
|
||||
Reemplazar el contenido de `<div id="viewLogin">` en `public/index.html` con el código almacenado en `public/templates/login-classic-roles.html`.
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Opción 2: Minimalista Splash & Bottom Sheet (Estilo OrderEAT / SiboPay)
|
||||
- **Archivo de Implementación:** `public/index.html` (dentro de `#viewLogin`)
|
||||
- **Estilo:** Pantalla completa en degradado celeste oficial (`#0284c7` a `#0369a1`) con marca de agua difuminada de siluetas de comida (ollas, brócoli, manzanas, cubiertos).
|
||||
- **Características:**
|
||||
- Emblema central de SiboPay con aura translúcida y título blanco de alta legibilidad.
|
||||
## 🚀 Opción 2: Minimalista Splash & Bottom Sheet (Estilo OrderEAT / SiboPay)
|
||||
- **Archivo de Implementación:** `public/index.html` (dentro de `#viewLogin`)
|
||||
- **Estilo:** Pantalla completa en degradado celeste oficial (`#0284c7` a `#0369a1`) con marca de agua difuminada de siluetas de comida (ollas, brócoli, manzanas, cubiertos).
|
||||
- **CaracterÃsticas:**
|
||||
- Emblema central de SiboPay con aura translúcida y tÃtulo blanco de alta legibilidad.
|
||||
- Eslogan institucional "Sistema Digital de Pagos y Monedero Estudiantil".
|
||||
- Botón principal tipo píldora blanca sólida: **"Iniciar Sesión"**.
|
||||
- Botón secundario translúcido con borde blanco: **"Registrarse"**.
|
||||
- Al pie absoluto de la pantalla: Enlace a **Términos y Condiciones** que abre un modal emergente rápido.
|
||||
- **Interacción fluida (Bottom Sheet):** Al presionar Iniciar Sesión o Registrarse, se despliega suavemente desde abajo una ventana moderna con los formularios, sin tapar abruptamente la identidad visual de la aplicación.
|
||||
- El sistema detecta el rol automáticamente al validar credenciales contra `/api/auth/login`.
|
||||
- Botón principal tipo pÃldora blanca sólida: **"Iniciar Sesión"**.
|
||||
- Botón secundario translúcido con borde blanco: **"Registrarse"**.
|
||||
- Al pie absoluto de la pantalla: Enlace a **Términos y Condiciones** que abre un modal emergente rápido.
|
||||
- **Interacción fluida (Bottom Sheet):** Al presionar Iniciar Sesión o Registrarse, se despliega suavemente desde abajo una ventana moderna con los formularios, sin tapar abruptamente la identidad visual de la aplicación.
|
||||
- El sistema detecta el rol automáticamente al validar credenciales contra `/api/auth/login`.
|
||||
|
||||
---
|
||||
|
||||
*Fecha de registro: 07 de Octubre de 2026*
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 💎 Opción 3: Glassmorphism Inmersivo (Diseño Frosted Glass & Specular Glow)
|
||||
- **Archivos de Respaldo para Reversión Inmediata:**
|
||||
- public/templates/backup-viewLogin-original.html
|
||||
- public/templates/backup-modalQr-original.html
|
||||
- public/templates/backup-styles-login-qr-original.css
|
||||
- **Estilo:** Vidrio esmerilado translúcido (*frosted glass*) sobre fondo de gradiente profundo, reflejos especulares de 1px en los bordes, cápsulas flotantes y tipografía en blanco puro brillante (#ffffff).
|
||||
- **Elementos transformados:**
|
||||
1. **Tarjeta de Inicio de Sesión y Registro (#viewLogin & #loginBottomSheet):**
|
||||
- Ventana y tarjeta con efecto de cristal esmerilado (ackdrop-filter: blur(28px)).
|
||||
- Campos de texto (inputs) en cápsulas translúcidas con bordes de luz blanca.
|
||||
- Botones principales y de accesos rápidos con brillo y sombra de cristal.
|
||||
2. **Modal Inmersivo del Código QR de Pago (#modalQr):**
|
||||
- Tarjeta central de cristal esmerilado con biseles luminosos.
|
||||
- Marco de escaneo QR de alto contraste para lectura instantánea de cámara.
|
||||
- Botón de cierre en cápsula de vidrio flotante.
|
||||
- **Instrucción de Rollback:**
|
||||
Para revertir inmediatamente al diseño anterior si no te gusta, simplemente restaura los bloques HTML desde public/templates/backup-viewLogin-original.html y public/templates/backup-modalQr-original.html o reactiva las reglas de estilo de respaldo.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user