/* ==========================================================================
   LM Admin - Sistema de Diseño Mobile-First & Estilos
   ========================================================================== */

:root {
  /* Paleta de Colores Sofisticada */
  --bg-main: #0b0f17;
  --bg-card: #131b2a;
  --bg-card-hover: #192336;
  --bg-card-alt: #162032;
  --bg-glass: rgba(19, 27, 42, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Acentos de Marca y Finanzas */
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-600: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-glow: rgba(245, 158, 11, 0.2);

  --rose-500: #f43f5e;
  --rose-400: #fb7185;
  --rose-glow: rgba(244, 63, 94, 0.25);

  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --sky-glow: rgba(14, 165, 233, 0.2);

  --indigo-500: #6366f1;
  --indigo-400: #818cf8;

  /* Texto */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Tipografía */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Elevación y Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.5);

  /* Dimensiones */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --bottom-bar-height: 72px;
  --header-height: 64px;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Contenedor tipo App Móvil */
.app-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-main);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  padding-bottom: calc(var(--bottom-bar-height) + 20px);
}

/* Header de la App */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #0f172a;
  border: 1.5px solid rgba(52, 211, 153, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--emerald-glow);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.brand-text p {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover, .icon-btn:active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: scale(0.96);
}

/* Área de contenido principal */
.main-content {
  flex: 1;
  padding: 16px 18px;
}

/* Vistas / Tabs */
.tab-view {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Tarjetas del Dashboard / Resumen Financiero
   ========================================================================== */

.metrics-carousel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.metric-card.full-width {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(19, 27, 42, 0.95));
  border-color: rgba(16, 185, 129, 0.25);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.metric-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.metric-icon-bubble {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.metric-amount {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.metric-card.full-width .metric-amount {
  font-size: 28px;
  color: var(--emerald-400);
}

.metric-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Alertas y Accesos Rápidos
   ========================================================================== */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 12px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-count {
  background: var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

/* Banner de Alerta Urgente */
.alert-banner {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(19, 27, 42, 0.95));
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-banner.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(19, 27, 42, 0.95));
  border-color: rgba(245, 158, 11, 0.35);
}

.alert-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.alert-content p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Tarjetas de Lista (Propiedades, Cobros, Mantenimiento)
   ========================================================================== */

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.2s ease;
  position: relative;
}

.item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-property-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Badges de Estado */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: capitalize;
  white-space: nowrap;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-400);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose-400);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-info {
  background: rgba(14, 165, 233, 0.15);
  color: var(--sky-400);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Detalles del Inquilino y Renta */
.card-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 10px 0;
}

.detail-col label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.detail-col span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-col .amount {
  color: var(--emerald-400);
  font-weight: 700;
}

/* Barra de Acciones de la Tarjeta */
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  min-height: 42px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #fff;
  box-shadow: 0 4px 12px var(--emerald-glow);
}

.btn-primary:hover, .btn-primary:active {
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-500));
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover, .btn-whatsapp:active {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover, .btn-secondary:active {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  min-height: 34px;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Barra de Navegación Inferior (Bottom Bar Móvil)
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: var(--bottom-bar-height);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  flex: 1;
  padding: 8px 0;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-item.active {
  color: var(--emerald-400);
}

.nav-item.active svg {
  stroke: var(--emerald-400);
  transform: translateY(-2px);
}

.nav-indicator {
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background: var(--emerald-400);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px var(--emerald-glow);
  display: none;
}

.nav-item.active .nav-indicator {
  display: block;
}

.nav-badge-dot {
  position: absolute;
  top: 6px;
  right: 24%;
  width: 7px;
  height: 7px;
  background: var(--rose-500);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--rose-glow);
}

/* ==========================================================================
   Modales Bottom Sheet (Estilo App Móvil)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 20px 32px;
  box-shadow: var(--shadow-lg);
}

.modal-backdrop.open .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  margin: 0 auto 16px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.sheet-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
}

/* Formulario */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Botón flotante para Agregar (FAB) */
.fab-btn {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 16px);
  right: calc(50% - 240px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px var(--emerald-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 45;
  transition: transform 0.2s ease, filter 0.2s ease;
}

@media (max-width: 540px) {
  .fab-btn {
    right: 20px;
  }
}

.fab-btn:hover {
  transform: scale(1.06);
}

.fab-btn:active {
  transform: scale(0.95);
}

/* Notificación Toast */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: 13px;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filtros y pestañas secundarias */
.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald-500);
  color: var(--emerald-400);
}

/* ==========================================================================
   Tarjetas de Crédito Físicas y Virtuales (Estilo Premium)
   ========================================================================== */

.credit-card-item {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.credit-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-bg-blue {
  background: linear-gradient(135deg, #172554, #1e3a8a, #0f172a);
}

.card-bg-purple {
  background: linear-gradient(135deg, #4c1d95, #6d28d9, #1e1b4b);
}

.card-bg-gold {
  background: linear-gradient(135deg, #713f12, #a16207, #1c1917);
}

.card-bg-emerald {
  background: linear-gradient(135deg, #064e3b, #047857, #022c22);
}

.card-bg-dark {
  background: linear-gradient(135deg, #1e293b, #334155, #090d16);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-bank-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.card-chip {
  width: 34px;
  height: 26px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.card-number-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: monospace, var(--font-sans);
  font-size: 17px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-balance-box {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-balance-box .balance-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
}

.card-balance-box .balance-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.card-dates-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
  padding: 0 2px;
}

.card-dates-row strong {
  color: #fff;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bloqueo estricto: oculta el contenido de la app si no hay sesión activa (cero parpadeos) */
html.auth-pending .app-container {
  display: none !important;
}

/* ==========================================
   PANTALLA DE LOGIN SEGURO Y AUTENTICACIÓN
   ========================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.12) 0%, rgba(10, 15, 29, 0.98) 75%);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(18, 26, 47, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.1);
  text-align: center;
}

.login-brand {
  margin-bottom: 24px;
}

.login-logo-glow {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
  overflow: hidden;
  padding: 4px;
}

.login-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.login-form {
  text-align: left;
}

.login-error-alert {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--rose-400);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0.7;
}

.input-with-icon .form-input {
  padding-left: 40px;
}

.pwd-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.65;
  transition: opacity 0.2s;
  padding: 4px;
}

.pwd-toggle-btn:hover {
  opacity: 1;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 20px;
}

.remember-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.login-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  padding: 13px;
}

.login-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
}

