:root {
  --trucking-color: #ffa500;
  --finance-color: #7571f9;
  --active-color: var(--trucking-color);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fb;
}

.login-form-bg {
  background: var(--active-color);
  transition: all 0.5s ease;
}

.login-form {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: none;
}

.card-body {
  padding: 2.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h4 {
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #666;
  font-size: 0.9rem;
}

.mode-toggle {
  display: flex;
  background: #f0f4f8;
  border-radius: 50px;
  padding: 5px;
  margin-bottom: 2rem;
}

.mode-toggle button {
  flex: 1;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mode-toggle button.active {
  background: var(--active-color);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.form-control {
  border-radius: 10px;
  padding: 12px 15px;
  border: 1px solid #e1e5eb;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--active-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 165, 0, 0.25);
}

.submit-btn {
  background: var(--active-color);
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0.9;
}

.login-form__footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.login-form__footer a {
  font-weight: 600;
  text-decoration: none;
}

.form-icon {
  position: relative;
}

.form-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.form-icon input {
  padding-left: 45px;
}

.trucking-mode .login-form-bg {
  background: var(--trucking-color);
}

.trucking-mode .mode-toggle button.active {
  background: var(--trucking-color);
}

.trucking-mode .submit-btn {
  background: var(--trucking-color);
}

.trucking-mode .form-control:focus {
  border-color: var(--trucking-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 165, 0, 0.25);
}

.finance-mode .login-form-bg {
  background: var(--finance-color);
}

.finance-mode .mode-toggle button.active {
  background: var(--finance-color);
}

.finance-mode .submit-btn {
  background: var(--finance-color);
}

.finance-mode .form-control:focus {
  border-color: var(--finance-color);
  box-shadow: 0 0 0 0.2rem rgba(117, 113, 249, 0.25);
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--active-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

.hidden {
  display: none;
}

.alert {
  border-radius: 10px;
  border: none;
}

/* Custom Alert Styles */
.alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.alert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.alert-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.alert-header {
  background: #dc3545;
  /* solid red */
  color: white;
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.alert-icon {
  font-size: 24px;
}

.alert-title {
  margin: 0;
  font-weight: 600;
}

.alert-body {
  padding: 30px 20px;
  text-align: center;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.alert-footer {
  padding: 0 20px 20px;
  text-align: center;
}

.alert-btn {
  background: #dc3545;
  /* solid red */
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.alert-btn:hover {
  background: #b02a37;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}
