/**
 * @file
 * Account forms (KAN-39): one-time login, login and password request share
 * the look of the login form designed in the theme
 * (themes/liveurope/sass/drupal/_login.scss). The registration page has its
 * own design and stylesheet (account-register.css, TASK-032).
 *
 * WHY the doubled id plus class: the theme's rules for these forms
 * (form#user-login-form, .user-form) have the same or lower specificity and
 * load after module CSS. The extra class lifts these rules above them
 * without !important. The theme itself is Compass/Ruby-SASS and cannot be
 * compiled in DDEV, so the rules live here instead of in its SCSS.
 */

/* The form box: centred, at most as wide as the theme's login form. Padding
   and margin scale with the viewport (375-1440px): the theme kept 72px of
   padding on a phone, which left little room for the fields. */
form#user-pass-reset.user-pass-reset,
form#user-login-form.user-login-form,
form#user-pass.user-pass {
  box-sizing: border-box;
  width: 100%;

  /* WHY: 600px is the theme's login form width, kept for all three forms. */
  max-width: 600px;
  margin: clamp(1.5rem, 0.9718rem + 2.2535vw, 3rem) auto;
  padding: clamp(1rem, 5.2582vw - 0.2324rem, 4.5rem);
  border-radius: 20px;
}

/* Labels above the field, as on the login form. */
form#user-pass-reset.user-pass-reset label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
}

/* The button: outlined and left aligned, as on the login form. */
form#user-pass-reset.user-pass-reset .form-actions {
  margin-top: 0;
  text-align: left;
}

form#user-pass-reset.user-pass-reset .form-submit {
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 15px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-size: clamp(0.875rem, 0.8442rem + 0.1315vw, 0.9625rem);
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

form#user-pass-reset.user-pass-reset .form-submit:hover,
form#user-pass-reset.user-pass-reset .form-submit:focus-visible {
  background: #000;
  color: #fff;
}
