/* ==========================================================================
   1. RESET GENERAL (Sin cambios)
   ========================================================================== */
   * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

   body { background-color: #0b0f19; min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; color: #ffffff; }
   
   .app-mobile-container {
     width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; 
     height: 100vh; position: relative; overflow: hidden; background-color: #0b0f19; padding: 0 !important;
   }
   
   /* ==========================================================================
      2. SISTEMA DE AUTENTICACIÓN (REVERTIDO A TU ESTRUCTURA ORIGINAL)
      ========================================================================== */
   .auth-view-flow {
     width: 100%;
     height: 100%;
     display: flex;
     flex-direction: column;
     background-color: #0b0f19;
     justify-content: flex-start;
     overflow-y: auto; /* Único cambio seguro: permite scroll sin romper el diseño */
   }
   
   .auth-hero-header {
     position: relative;
     width: 100%;
     height: auto;
     min-height: 450px; 
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: visible;
     margin-top: -30px; /* Tu ajuste de posición */
   }
   
   .auth-hero-header.short-hero { min-height: 250px; }
   
   .hero-bg-image { width: 100%; height: auto; display: block; }
   
   .hero-overlay-gradient {
     position: absolute; top: 0; left: 0; right: 0; bottom: 0;
     background: linear-gradient(180deg, rgba(11, 15, 25, 0.05) 20%, rgba(11, 15, 25, 0.25) 55%, rgba(11, 15, 25, 0.75) 85%, rgba(11, 15, 25, 1) 100%);
   }
   
   .auth-card-content {
     flex: 1; /* Mantenemos tu valor original */
     display: flex;
     flex-direction: column;
     justify-content: flex-start;
     padding: 20px 24px 28px 24px;
     background-color: #0b0f19;
     margin-top: -60px;
     z-index: 10;
     border-top-left-radius: 30px;
     border-top-right-radius: 30px;
   }
   
   /* ==========================================================================
      3. ELEMENTOS DE UI (MANTENIDOS)
      ========================================================================== */
   .hero-logo-wrapper { position: absolute; z-index: 3; display: flex; justify-content: center; width: 100%; padding: 0 40px; }
   .brand-logo-premium { width: 78%; max-width: 230px; height: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)); }
   .brand-logo-premium-short { width: 50%; max-width: 130px; height: auto; }
   .back-floating-btn { position: absolute; top: 16px; left: 16px; z-index: 5; background: rgba(11, 15, 25, 0.7); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); color: #ffffff; padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 500; cursor: pointer; }
   
   .action-buttons-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; }
   .action-btn { width: 100%; border: none; padding: 14px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
   .btn-orange { background-color: #e26827; color: #ffffff; }
   .btn-outline { background-color: transparent !important; color: #ffffff !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; }
   
   .form-group { display: flex; flex-direction: column; gap: 6px; text-align: left; }
   .form-group input { width: 100%; background-color: #1e293b; border: 1px solid rgba(255, 255, 255, 0.08); padding: 12px 14px; border-radius: 8px; color: #ffffff; }
   
   /* ==========================================================================
      4. DASHBOARD (MANTENIDO)
      ========================================================================= */
   @media (min-width: 768px) {
     body { align-items: center; padding-top: 20px; }
     .app-mobile-container { height: 840px; border-radius: 28px; border: 4px solid #1e293b; }
   }

   .welcome-text-center { 
    font-size: 16px !important; /* Reducido de 18px a 16px */
    font-weight: 700; 
    color: #ffffff; 
    text-align: center; 
    margin-bottom: 4px; /* Un poco más compacto */
  }
  
  .subtitle-text-center { 
    font-size: 12px !important; /* Reducido de 13px a 12px */
    color: #94a3b8; 
    text-align: center; 
    margin-bottom: 20px; /* Separación corregida hacia el input */
  }
  
  /* Espaciado del primer input */
  .card-form { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    margin-top: 10px; /* Añade un pequeño respiro arriba del primer input */
  }

  .divider { 
    display: flex; 
    align-items: center; 
    color: #64748b; /* Color un poco más suave */
    font-size: 11px; /* Texto más pequeño y elegante */
    margin: 20px 0; 
  }
  
  .divider::before, 
  .divider::after { 
    content: ''; 
    flex: 1; 
    border-bottom: 1px solid #334155; 
  }
  
  .divider::before { margin-right: 12px; }
  .divider::after { margin-left: 12px; }

  .back-floating-btn {
    position: absolute;
    top: 50px; /* Cambiado de 16px a 40px para bajarlo */
    left: 16px;
    z-index: 5;
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

.btn-google {
    background-color: #ffffff !important; 
    color: #333 !important;
    border: 1px solid #ddd !important; 
    display: flex; 
    align-items: center;       /* ESTO CENTRA EL ICONO Y EL TEXTO VERTICALMENTE */
    justify-content: center;   /* ESTO CENTRA EL CONTENIDO HORIZONTALMENTE */
    gap: 12px;                 /* Espacio entre el logo y el texto */
    font-weight: 600; 
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.btn-google img { 
    width: 20px; 
    height: 20px; 
    object-fit: contain;       /* Asegura que el logo no se deforme */
    display: block;            /* Evita espacios extra debajo de la imagen */
}

