/* ============================================================
   D.S AIRLINES — WebAuthn Biometric UI Styles
   ============================================================ */

/* ── Biometric Registration Offer Modal ── */
.webauthn-offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.webauthn-offer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.webauthn-offer-card {
  background: linear-gradient(145deg, rgba(15, 20, 40, 0.98), rgba(10, 14, 30, 0.98));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 168, 76, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.webauthn-offer-overlay.active .webauthn-offer-card {
  transform: scale(1) translateY(0);
}

.webauthn-offer-icon {
  margin-bottom: 20px;
  animation: webauthnPulse 2s ease-in-out infinite;
}

@keyframes webauthnPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(201,168,76,0.3)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 16px rgba(201,168,76,0.5)); }
}

.webauthn-offer-title {
  color: #c9a84c;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.webauthn-offer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 28px;
}

.webauthn-offer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.webauthn-btn-enable {
  background: linear-gradient(135deg, #c9a84c, #e8d48b);
  color: #0a0e1e;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.webauthn-btn-enable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
}

.webauthn-btn-skip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.webauthn-btn-skip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

/* ── Login Button in Auth Modal ── */
.webauthn-login-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.05));
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  color: #c9a84c;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.webauthn-login-btn:hover {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.1));
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);
}

.webauthn-bio-icon {
  display: flex;
  align-items: center;
}

.webauthn-email-hint {
  margin-left: auto;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

/* ── Divider ── */
.webauthn-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.webauthn-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.webauthn-divider-text {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Spinner ── */
.webauthn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(201, 168, 76, 0.3);
  border-top-color: #c9a84c;
  border-radius: 50%;
  animation: webauthnSpin 0.6s linear infinite;
}

@keyframes webauthnSpin {
  to { transform: rotate(360deg); }
}

/* ── Mobile-specific adjustments ── */
@media (max-width: 480px) {
  .webauthn-offer-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .webauthn-offer-title {
    font-size: 1.2rem;
  }
}
