.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.4);
  z-index: 200;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field__label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.form-field input,
.form-field select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
}

.form-field__row {
  display: flex;
  gap: 8px;
}

.form-field__row input {
  flex: 1;
}

.form-field__row select {
  width: 90px;
}

.form-field__password {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 8px;
}

.form-field__password input {
  flex: 1;
  border: none;
  padding: 10px 4px;
}

.form-field__password input:focus {
  outline: none;
}

.form-field__eye {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.form-field__eye img {
  width: 18px;
  height: 18px;
}

.form-error {
  min-height: 16px;
  margin: 0;
  font-size: 12px;
  color: #dc2626;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.modal__button {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.modal__button--ghost {
  background: #f3f4f6;
  color: #374151;
}

.modal__button--primary {
  background: #8b7dbe;
  color: #ffffff;
}

.modal__button--danger {
  background: #dc2626;
  color: #ffffff;
}

.modal__note {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px;
}
