/* Dialog and forms. */
dialog {
  width: min(540px,calc(100% - 32px));
  max-height: 90vh;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 120px #0003;
}

dialog::backdrop {
  background: #0006;
  backdrop-filter: blur(5px);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.modal-head h2 {
  font-size: 21px;
  font-weight: 600;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  font-size: 12px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #bfbfbe;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-info {
  font-size: 11px;
  line-height: 2;
  color: var(--muted);
  margin: 10px 0 18px;
}

.form-error {
  font-size: 11px;
  line-height: 1.8;
  color: #df5353;
  min-height: 18px;
  margin: 8px 0;
}

.full-width {
  width: 100%;
}

.switch-auth {
  font-size: 11px;
  text-align: center;
  margin: 18px 0 2px;
}

.switch-auth button {
  text-decoration: underline;
}
