/* ==========================================================================
   EXPOSITIVO 2026 - PANTALLA DE ACCESO PROTEGIDO (GATEKEEPER / LOGIN)
   ========================================================================== */

.auth-gatekeeper-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #141c2e 0%, #080c16 80%, #04060b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}

.auth-gatekeeper-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(212, 175, 55, 0.12);
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: authCardFadeIn 0.5s ease-out;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af37, #dfc058, transparent);
}

@keyframes authCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.03) 70%, transparent 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
  padding: 8px;
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.auth-header-title {
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #ffffff 30%, #dfc058 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.25rem 0;
}

.auth-header-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-gold, #d4af37);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.auth-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #dfc058;
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.auth-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  color: #d4af37;
  font-size: 0.95rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 0.85rem 2.85rem 0.85rem 2.75rem;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.auth-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
  background: rgba(15, 23, 42, 0.95);
}

.auth-toggle-pwd {
  position: absolute;
  right: 0.85rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.4rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.auth-toggle-pwd:hover {
  color: #d4af37;
}

.auth-btn-submit {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4af37, #b48c1e);
  color: #0b0f19;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
}

.auth-btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #dfc058, #c69b28);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}

.auth-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-error {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.8rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.auth-error.show {
  display: block;
  animation: authShake 0.35s ease;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.775rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-footer a, .auth-footer button {
  color: #d4af37;
  text-decoration: underline;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

.auth-footer a:hover, .auth-footer button:hover {
  color: #dfc058;
}

/* Indicador de candado en el header */
.btn-auth-status {
  position: relative;
}
.btn-auth-status.active {
  border-color: rgba(212, 175, 55, 0.6);
  color: #dfc058;
}
