/* Auth Modal Styles */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-content {
  background: linear-gradient(135deg, #2d0000 0%, #1a0000 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal-overlay.active .auth-modal-content {
  transform: translateY(0);
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.auth-modal-close:hover {
  color: var(--gold-light);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-modal-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.auth-modal-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--sand);
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.auth-tab-btn.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  opacity: 1;
}

.auth-modal-body .auth-form {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.auth-modal-body .auth-form.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* OTP Input Group */
.otp-group {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.otp-input {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: rgba(28, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: var(--white);
  transition: all 0.3s ease;
}

.otp-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: rgba(92, 0, 0, 0.4);
  outline: none;
}

/* Resend Button */
.resend-wrapper {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--sand);
}

.resend-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.resend-btn:disabled {
  color: rgba(244, 224, 161, 0.5);
  cursor: not-allowed;
  text-decoration: none;
}

.resend-btn:not(:disabled):hover {
  color: var(--gold-light);
}

/* Error/Success Messages */
.auth-msg {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.2rem;
}

.auth-msg.error {
  color: #ff6b6b;
}

.auth-msg.success {
  color: #4CAF50;
}
