/* Forms on the light sheet (sign in, forgot password, reset password), on top of frame.css.
   One column, one field under the other, the button last. */
.form { display: grid; gap: 8px; max-width: 26rem; }
.form label { margin-top: 10px; font-weight: 600; }
.form :is(input, textarea) {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--ink); font: inherit;
}
.form :is(input, textarea):focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 10px; }
/* The site's error red, as on the live pages. */
.form input[aria-invalid="true"] { border-color: #b3261e; }
.form [role="alert"] { margin: 0; font-size: 0.9rem; color: #b3261e; }
.form .btn { justify-self: start; margin-top: 14px; cursor: pointer; font: inherit; font-weight: 600; }
/* "Show password" sits under its field, on the right, as a quiet text button. */
.password-toggle {
  justify-self: end; min-height: var(--tap); padding: 0 4px; border: 0; background: none;
  color: var(--purple); font: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: underline; cursor: pointer;
}
/* A message from the site after a form was sent ("We have emailed your password reset link!"). */
.form-status { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--white); color: var(--ink); }
.form-links { margin: 18px 0 0; }
.form-links a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--purple); font-weight: 600; text-underline-offset: 3px; }

@media (min-width: 900px) {
  /* The sky side of these pages is short, so it stays in view. */
  .stage-in { position: sticky; top: 0; }
}

/* Account sign-up uses a native checkbox and the same verification field as other forms. */
.form-agreement { display: flex; align-items: center; gap: 12px; }
.form .form-agreement input {
  flex: 0 0 var(--tap); width: var(--tap); height: var(--tap); min-height: 0; margin: 0; padding: 0;
  cursor: pointer; accent-color: var(--purple);
}
.form-agreement label { font-weight: inherit; cursor: pointer; }
.form-agreement a { color: var(--purple); text-underline-offset: 3px; }
.form .verification-recipient { margin: 0; overflow-wrap: anywhere; }
