/* v2 adapter for common/* pages (password flows)
 * - Keep legacy HTML structure (header + main + article + .content)
 * - No aside is expected on forgot/reset pages; change-password may have aside via layout.html.
 */

/* shared header/aside/shell live in app.css; keep common-only form tweaks here */

/* common pages: force common (black) header theme */
body.common-page,
body.common-no-aside {
  --brand: #111827;
  --brand-dark: #0b1220;
  --brand-light: #e5e7eb;
  --header-bg: var(--brand);
}

/* Inputs (legacy class names) */
body > main > article .input-container {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
body > main > article .input-container > label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.06em;
}
body > main > article .input-container > input.input-item {
  width: 100%;
  height: 44px;
  border-radius: var(--control-radius);
  border: 1.5px solid var(--border);
  padding: 0 12px;
  font-size: 13px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
body > main > article .input-container > input.input-item:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(34,107,168,0.1);
}

/* Bottom action button (legacy .button-container + .submit) */
body > main > article .button-container {
  display: flex;
  justify-content: flex-end;
  padding: 0 24px 24px;
  max-width: var(--content-max-w);
  margin: 0 auto;
}
body > main > article .button-container button.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: var(--control-radius);
  color: var(--white);
  background: var(--blue);
  cursor: pointer;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(34,107,168,0.22);
  transition: var(--transition);
}
body > main > article .button-container button.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(34,107,168,0.28);
}

/* Mobile */
@media (max-width: 960px) {
  body > main > article .button-container {
    padding: 0 16px 18px;
  }
}

