:root {
  --primary-color: #F26522;
  --primary-dark: #d55b1f;
}

body {
  font-family: 'Geist', sans-serif;
  color: #333;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

html, body {
  background-color: #F8FCF6 !important;
}

.badge-wrapper .badge-text {
  font-weight: 600;
}

form label {
  font-size:16px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  font-weight: 500;
  border-radius: 100px;
}

.btn-primary:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}


.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* 2FA Input Styles */
.twofa-input-container {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.twofa-input {
  width: 60px;
  height: 60px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  background-color: #fff;
  transition: all 0.2s ease;
  outline: none;
}

.twofa-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
  transform: translateY(-2px);
}

.twofa-input::-webkit-outer-spin-button,
.twofa-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.twofa-input[type=number] {
  -moz-appearance: textfield;
}

/* Remember Device Card Styles */
.remember-device-card {
  background: #fff;
  border: 2px solid #e1e5e9;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
}

.remember-device-card:hover {
  border-color: #d1d5d9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.remember-device-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.remember-device-checkbox {
  display: none;
}

.remember-device-label {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  width: 100%;
  margin: 0;
}

.toggle-switch {
  width: 48px;
  height: 24px;
  background-color: #e1e5e9;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.remember-device-checkbox:checked + .remember-device-label .toggle-switch {
  background-color: var(--primary-color);
}

.remember-device-checkbox:checked + .remember-device-label .toggle-switch::before {
  transform: translateX(24px);
}

.toggle-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-title {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.toggle-subtitle {
  font-size: 14px;
  color: #6c757d;
}

/* Card active state */
.remember-device-checkbox:checked ~ .remember-device-card,
.remember-device-card:has(.remember-device-checkbox:checked) {
  border-color: var(--primary-color);
  background-color: #fff8f6;
}

/* Notification Message Styles */
.da-message {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  background-position: 16px center;
  background-repeat: no-repeat;
  padding-left: 20px;
}

.da-message:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.da-message p,
.da-message ul,
.da-message ol {
  margin: 0;
}

.da-message ul li,
.da-message ol li {
  list-style-position: inside;
  list-style-type: inherit;
  margin: 0;
}

/* Success Message */
.da-message.success {
  background-color: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
  background-image: none;
}

.da-message.success.green {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  background-image: none;
}

/* Error Message */
.da-message.error {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
  background-image: none;
}

/* Warning Message */
.da-message.warning {
  background-color: #fffbeb;
  border-color: #fed7aa;
  color: #d97706;
  background-image: none;
}

/* Info Message */
.da-message.info {
  background-color: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
  background-image: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .twofa-input-container {
    gap: 8px;
  }

  .twofa-input {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .remember-device-card {
    padding: 16px;
  }

  .toggle-switch {
    width: 44px;
    height: 22px;
  }

  .toggle-switch::before {
    width: 18px;
    height: 18px;
  }

  .remember-device-checkbox:checked + .remember-device-label .toggle-switch::before {
    transform: translateX(22px);
  }

  .da-message {
    padding: 12px 16px;
    padding-left: 44px;
    font-size: 13px;
    background-position: 12px center;
  }
}

.invalid-feedback {
  font-size: 14px;
}

/* Override error label positioning to show below inputs instead of next to them */
.input-group label.error {
  position: static !important;
  left: auto !important;
  top: auto !important;
  margin: 0.25rem 0 0 0 !important;
  padding: 0 !important;
  background: none !important;
  color: #dc3545 !important;
  font-size: 0.875rem !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  display: block !important;
}

.input-group label.error:after {
  display: none !important;
}

/* Ensure proper spacing */
.input-group {
  margin-bottom: 0.5rem;
}
