/* ══ LOGIN ══ */
/* All full-screen fixed views need to extend into safe-area zones */
#loginScreen, #unauthorized, #loadingScreen, #noEncontradoScreen, #registroScreen {
  background: var(--bg);
}
#loginScreen, #unauthorized { position: fixed; inset: 0; display: flex; align-items: stretch; justify-content: center; background: var(--bg); z-index: 100; overflow: hidden; }
.login-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.login-bg-ring { position: absolute; border-radius: 50%; border: 2px solid var(--accent); opacity: 0.07; }
.login-bg-ring-1 { width: 500px; height: 500px; top: -200px; left: -180px; animation: intro-ring-pulse 5s ease-in-out infinite; }
.login-bg-ring-2 { width: 300px; height: 300px; top: -80px; left: -60px; animation: intro-ring-pulse 5s ease-in-out 1s infinite; }
.login-content { position: relative; z-index: 1; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 80px 32px 52px; box-sizing: border-box; }
.login-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: wiz-fade-up 0.45s cubic-bezier(0.4,0,0.2,1) 0.1s both; }
.login-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 22px; animation: wiz-fade-up 0.45s cubic-bezier(0.4,0,0.2,1) 0.1s both; }
.login-title { font-size: 22px !important; font-weight: 900 !important; font-style: italic !important; text-transform: uppercase !important; letter-spacing: -0.3px !important; color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; margin: 0 !important; text-align: center; animation: wiz-fade-up 0.45s cubic-bezier(0.4,0,0.2,1) 0.2s both; }
.login-sub { font-size: 13px !important; color: var(--text3) !important; -webkit-text-fill-color: var(--text3) !important; margin: 0 !important; text-align: center; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; animation: wiz-fade-up 0.45s cubic-bezier(0.4,0,0.2,1) 0.3s both; }
.login-cta-box { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: wiz-fade-up 0.45s cubic-bezier(0.4,0,0.2,1) 0.45s both; }
.login-instruction { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); border-radius: 16px; padding: 14px 18px; font-size: 14px !important; font-weight: 600 !important; color: var(--text) !important; -webkit-text-fill-color: var(--text) !important; text-align: center; line-height: 1.45 !important; margin: 0 !important; width: 100%; box-sizing: border-box; }
.login-instruction-icon { font-size: 20px; flex-shrink: 0; }
.login-google-btn-wrap {
  display: flex; justify-content: center; align-items: center;
  min-height: 48px; width: 100%;
  /* Ocultar el fondo blanco del iframe de Google */
  border-radius: 4px;
  overflow: hidden;
  /* Forzar tema oscuro en el iframe de Google cuando corresponde */
  color-scheme: light; /* Google button siempre necesita light para verse bien */
  background: transparent;
}
/* El iframe de Google: fondo transparente forzado */
.login-google-btn-wrap iframe,
.login-google-btn-wrap > div {
  background: transparent !important;
}
.login-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0 12px; width: 100%; }
.login-divider span { flex: 1; height: 1px; background: var(--border); }
.login-divider em { font-style: normal; font-size: 12px; color: var(--text4); font-weight: 600; letter-spacing: 0.08em; }
.login-register-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 13px 20px; border-radius: 14px; border: 1.5px solid var(--border); background: transparent; color: var(--text); font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 0.18s, border-color 0.18s; }
.login-register-btn:active { background: var(--card); }
.login-register-btn--secondary { color: var(--text); border-color: var(--border2); font-size: 14px; }
.login-register-btn--secondary:active { background: var(--card); }
.login-disclaimer { font-size: 11px !important; color: var(--text4) !important; -webkit-text-fill-color: var(--text4) !important; text-align: center; line-height: 1.5 !important; margin: 0 !important;padding-bottom: 15px; }
.login-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 32px; background: var(--card); border-radius: 24px; max-width: 340px; width: 90%; text-align: center; }

#google-resignin-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  color-scheme: light;
  background: transparent;
}
#google-resignin-btn > div,
#google-resignin-btn iframe,
#google-resignin-btn [role="button"] {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}
