/* ==========================================================================
   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;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 20px 24px 28px 24px;
      background: linear-gradient(180deg, #0b0f19 0%, #0f1420 100%);
      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. DESKTOP — Layout adaptable para PC
       ========================================================================= */
    @media (min-width: 768px) {
      body { 
        align-items: center; 
        justify-content: center;
        padding: 0;
        min-height: 100vh;
      }
      .app-mobile-container { 
        max-width: 960px; 
        height: auto; 
        min-height: 600px;
        border-radius: 0; 
        border: none;
        overflow: visible;
        display: flex;
        flex-direction: row;
        background: #0b0f19;
      }
      .auth-view-flow {
        flex-direction: row;
        overflow: hidden;
        border-radius: 20px;
        width: 100%;
        height: auto;
        min-height: 580px;
      }
      .auth-hero-header {
        flex: 1;
        min-height: auto;
        margin-top: 0;
        position: relative;
        overflow: hidden;
        border-radius: 0;
      }
      .auth-hero-header.short-hero { min-height: auto; }
      .hero-bg-image { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        position: absolute;
        top: 0; left: 0;
      }
      .hero-overlay-gradient {
        background: linear-gradient(135deg, rgba(11,15,25,0.4) 0%, rgba(11,15,25,0.15) 50%, rgba(11,15,25,0.4) 100%);
      }
      .hero-logo-wrapper {
        position: absolute;
        bottom: 32px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        padding: 0;
      }
      .brand-logo-premium { width: 160px; max-width: 200px; }
      .auth-card-content {
        flex: 1;
        max-width: 420px;
        margin-top: 0;
        border-radius: 0;
        padding: 48px 40px;
        justify-content: center;
        background: #0f1420;
      }
      .welcome-text-center { font-size: 20px !important; text-align: left; }
      .subtitle-text-center { font-size: 13px !important; text-align: left; margin-bottom: 40px; }
      .auth-footer-text { text-align: left; margin-top: 32px; }
    }
    
    /* ==========================================================================
       5. UI ELEMENTS
       ========================================================================= */
    .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: 32px; /* Más espacio antes del botón */
  }
  
  /* 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 */
  }

  .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: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.05) !important;
}

.btn-google img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.btn-google span {
    color: #ffffff;
}

.auth-footer-text {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    margin-top: 24px;
    line-height: 1.6;
}

.auth-footer-text a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer-text a:hover {
    color: #e26827;
}

