:root {
  --primary-blue: #4f46e5;
  --primary-red: #dc2626;
  --primary-green: #10b981;
  --primary-orange: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --secondary-blue: #60a5fa;
  --secondary-green: #34d399;
  --primary-purple: #8b5cf6;
  --text-medium: #4b5563;
  --bg-light-blue: #e0f2fe;
  --border-light: #e5e7eb;
  --gradient-button-primary: linear-gradient(90deg, #4f46e5 0%, #60a5fa 100%);
  --gradient-button-primary-hover: linear-gradient(90deg, #4338ca 0%, #5394e8 100%);
  --gradient-alert-button: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-alert-button-hover: linear-gradient(90deg, #d97706 0%, #eab308 100%);
  --border-light: #e5e7eb;
  --card-bg: #f8fafc;
  --text-dark: #1f2937;

}

/* Loading Spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast.success .toast-icon {
  color: var(--success);
}

.toast.error .toast-icon {
  color: var(--error);
}

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-medium);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.checkbox-container:hover input~.checkmark {
  background-color: #ccc;
}

.checkbox-container input:checked~.checkmark {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked~.checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal-btn:hover {
  color: var(--primary-red);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.input-with-icon {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  background: var(--card-bg);
}

.input-with-icon i {
  color: var(--text-light);
  margin-right: 0.75rem;
}

.input-with-icon input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-dark);
  width: 100%;
}

.modal-content select {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2C114.1L159.1%2C241.9c-3.8%2C3.8-8.8%2C5.8-13.8%2C5.8s-10-2-13.8-5.8L5.4%2C114.1c-7.5-7.5-7.5-19.8%2C0-27.3s19.8-7.5%2C27.3%2C0l126.3%2C126.3l126.3-126.3c7.5-7.5%2C19.8-7.5%2C27.3%2C0S294.5%2C106.6%2C287%2C114.1z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7em top 50%, 0 0;
  background-size: 0.65em auto, 100%;
  padding-right: 2.5em;
}

.welcome-back-text,
.register-text,
.otp-sent-text,
.resend-otp-text {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.welcome-back-text span,
.otp-sent-text span {
  font-weight: 600;
  color: var(--primary-blue);
}

.success-message,
.error-message {
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.success-message {
  background-color: #dcfce7;
  /* light green */
  color: #16a34a;
  /* dark green */
}

.error-message {
  background-color: #fee2e2;
  /* light red */
  color: #dc2626;
  /* dark red */
}

.success-message i,
.error-message i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.success-message p,
.error-message p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Custom CSS to hide scrollbar for the tab navigation */
.hide-scrollbar {
  scrollbar-width: none;
  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge */
}
