/**
 * @file
 * Form styling for user pages (body.path-user).
 *
 * Replicates the form styles from drupal11-compat.css (scoped to body.path-node)
 * for user edit, password reset, and login pages.
 */

/* Form item spacing */
body.path-user .form-item {
  margin-bottom: 1.5em;
}

/* Label styling */
body.path-user .form-item label {
  display: block;
  margin-bottom: .25em;
  font-weight: bold;
}

/* Text inputs */
body.path-user .form-text,
body.path-user .form-email,
body.path-user .form-tel,
body.path-user .form-url,
body.path-user .form-search,
body.path-user .form-number,
body.path-user .form-date,
body.path-user .form-time {
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  height: 42px;
  margin: 0 0 24px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Textarea */
body.path-user .form-textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 0 0 24px;
  padding: 10px 12px;
  width: 100%;
  min-height: 120px;
  font-size: 15px;
  box-sizing: border-box;
}

/* Select */
body.path-user .form-select {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 0 0 24px;
  width: 100%;
  font-size: 15px;
  background-color: white;
}

/* Submit buttons */
body.path-user .form-submit,
body.path-user .button {
  background-color: #253980;
  border: 0 none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  text-transform: uppercase;
  margin: 14px 15px 0 0;
  transition: background-color 0.3s ease;
}

body.path-user .form-submit:hover,
body.path-user .button:hover {
  background-color: #1a2660;
}

/* Danger/delete button */
body.path-user .button--danger {
  background-color: #d9534f;
}

body.path-user .button--danger:hover {
  background-color: #c9302c;
}

/* Fieldset styling */
body.path-user fieldset {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 15px 20px;
  margin-bottom: 1.5em;
}

body.path-user legend {
  font-weight: bold;
  padding: 0 10px;
  font-size: 16px;
}

/* Description/help text */
body.path-user .description,
body.path-user .form-item__description {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

/* Password strength meter */
body.path-user .password-strength__meter {
  height: 8px;
  border-radius: 4px;
  background: #eee;
}

body.path-user .password-strength__indicator {
  border-radius: 4px;
  height: 100%;
}

/* Password confirm message */
body.path-user .password-confirm {
  font-size: 13px;
}

/* Password confirm fields side-by-side on wider screens */
@media (min-width: 768px) {
  body.path-user .form-type-password-confirm .js-form-item {
    display: inline-block;
    width: 48%;
    vertical-align: top;
  }

  body.path-user .form-type-password-confirm .js-form-item + .js-form-item {
    margin-left: 3%;
  }
}

/* Stack password fields on mobile */
@media (max-width: 767px) {
  body.path-user .form-type-password-confirm .js-form-item {
    width: 100%;
  }
}
