/* Modal connexion requise (capture Pokédex, etc.) */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.auth-gate-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-gate-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--dark-bg-secondary, #1e293b);
  color: var(--text-light, #f1f5f9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.auth-gate-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.auth-gate-close:hover {
  color: #fff;
}

.auth-gate-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.auth-gate-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.auth-gate-modal h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  text-align: center;
  font-weight: 700;
}

.auth-gate-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
  text-align: center;
}

.auth-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.auth-gate-label {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 0.35rem;
}

.auth-gate-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--dark-bg-primary, #0f172a);
  color: inherit;
  font-size: 0.95rem;
}

.auth-gate-input:focus {
  outline: none;
  border-color: var(--primary-color, #38bdf8);
}

.auth-gate-error {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #f87171;
}

.auth-gate-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-gate-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-gate-btn-primary {
  background: var(--primary-color, #38bdf8);
  color: var(--primary-ink, #082f49);
}

.auth-gate-btn-primary:hover:not(:disabled) {
  background: var(--primary-light, #7dd3fc);
}

.auth-gate-btn-google {
  background: #fff;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-gate-btn-google:hover:not(:disabled) {
  background: #f1f5f9;
}

.auth-gate-footer {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.auth-gate-footer a {
  color: var(--primary-light, #7dd3fc);
  text-decoration: underline;
}
