.modal-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  vertical-align: middle;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #0073aa;
  animation: rpm-spin 1s ease-in-out infinite;
}

@keyframes rpm-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay .modal {
  display: flex;
  background: #00188c;
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 610px;
  position: relative;
  overflow: hidden;
  height: 514px;
}
.modal-overlay .modal::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(252, 220, 4, 1);
  border-radius: 50%;
  transform: rotate(45deg);
}
.modal-overlay .modal::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(252, 220, 4, 1);
  border-radius: 50%;
}
.modal-overlay .close-btn {
  position: absolute;
  top: -10px;
  right: 0px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay .close-btn:hover {
  opacity: 0.7;
}
.modal-overlay .modal-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-overlay .modal-title {
  color: white;
  font-size: 56px;
  font-weight: 300;
  margin-bottom: 32px;
  text-align: center;
}

.modal-overlay form {
  padding: 0 89px;
}

.modal-overlay .form-group {
  margin-bottom: 24px;
}
.modal-overlay .form-label {
  display: block;
  color: white;
  font-size: 14px;
  margin-bottom: 8px;
}
.modal-overlay .form-input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  color: #333;
}
.modal-overlay .form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}
.modal-overlay .form-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 32px;
}
.modal-overlay .submit-btn {
  background: white;
  color: #1e3a8a;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: block;
  margin: 0 auto 32px;
  transition: transform 0.2s;
}
.modal-overlay .submit-btn:hover {
  transform: translateY(-1px);
}
.modal-overlay .login-link {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.modal-overlay .login-link a {
  color: #fbbf24;
  text-decoration: none;
}
.modal-overlay .login-link a:hover {
  text-decoration: underline;
}
.modal-overlay .hidden {
  display: none;
}

.error-alert {
  background: white;
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-icon {
  color: #ef4444;
  font-weight: bold;
}

.error-title {
  color: #ef4444;
  font-weight: 600;
  font-size: 14px;
}

.error-message {
  color: #666;
  font-size: 14px;
  margin-top: 4px;
}

.success-alert {
  background: white;
  border: 1px solid #22c55d;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.success-icon {
  color: #22c55d;
  font-weight: bold;
}

.success-title {
  color: #22c55d;
  font-weight: 600;
  font-size: 14px;
}

.success-message {
  color: #22c55d;
  font-size: 14px;
  margin-top: 4px;
}
