.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  overflow-y: auto;
}

.forgot-container {
  width: 90%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin: 0 auto 40px auto;
  padding: 48px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
}

.header p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 8px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

#password-input {
  border: none;
}

#login-see-button {
  border: none;
  padding: 5px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  min-width: 100%;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 243, 0.1);
}

#password-input:focus {
  border-color: none;
  box-shadow: none;
}

.form-group input::placeholder {
  color: #9ca3af;
}

#password-input::placeholder {
  color: none;
}

.submit-btn {
  width: 100%;
  padding: 12px 24px;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.submit-btn:hover {
  background: #2563eb;
}

.submit-btn:active {
  transform: scale(0.98);
}

.back-link {
  text-align: center;
}

.back-link a {
  font-size: 0.95rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-link a:hover {
  color: #2563eb;
}

.success-message {
  display: none;
  background: #d1fae5;
  color: #065f46;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #a7f3d0;
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.error-message {
  display: none;
  background: #f0e3e9;
  color: #b3321b;
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.success-message.show {
  display: block;
}

.error-message.show {
  display: block;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1a73e8;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  display: none;
}

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

@media (max-width: 480px) {
  .modal-overlay {
    padding-top: 20px;
  }

  .forgot-container {
    padding: 36px 24px;
  }

  .header h1 {
    font-size: 1.5rem;
  }
}