/*
  W1 Account deletion page: the sign-in and confirmation controls. The page itself uses the site
  stylesheet (/assets/site.<hash>.css), so it follows the visitor's light or dark scheme with the
  app's design tokens; this file only adds the form, buttons and notices the script drives, as
  the kit's text field (17), button (01) and quiet banner (21). No colour is named here. AA
  contrast in both schemes; works from 320 px wide.
*/

.w1-step,
.w1-status:not(:empty) {
  margin-block: var(--space-lg);
}

.w1-step > * + * {
  margin-top: var(--space-md);
}

.w1-status {
  color: var(--inkSoft);
}

.w1-providers {
  display: grid;
  gap: var(--space-md);
  max-width: 28rem;
  margin-block: var(--space-lg) var(--space-2xl);
}

.w1-form {
  display: grid;
  gap: var(--space-sm);
  max-width: 28rem;
}

/* Text field: the label above, always visible; 56 px high, a 1.5 px outline the eye can find. */
.w1-form label {
  margin-top: var(--space-sm);
  color: var(--ink);
  font-size: var(--type-captionStrong-size);
  line-height: var(--type-captionStrong-line);
  font-weight: 600;
}

.w1-form input {
  width: 100%;
  min-height: var(--size-input);
  padding: var(--space-md) var(--space-lg);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--size-borderInput) var(--borderStrong);
  color: var(--ink);
  font: inherit;
}

.w1-form input:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary);
}

.w1-button:focus-visible,
.w1-link:focus-visible {
  outline: var(--size-focusRing) solid var(--focus);
  outline-offset: 2px;
}

/* Button: a pill, 54 px high. Primary, secondary (outline) and the destructive confirm. */
.w1-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 28rem;
  min-height: var(--size-button-lg);
  margin-top: var(--space-sm);
  padding: 6px var(--space-2xl);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--onPrimary);
  font: inherit;
  font-size: var(--type-label-size);
  line-height: var(--type-label-line);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--motion-duration-fast) var(--motion-easing-standard);
}

.w1-button:hover {
  background: var(--primaryPressed);
}

.w1-secondary {
  margin-top: 0;
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--size-borderInput) var(--primary);
  color: var(--primary);
}

.w1-secondary:hover {
  background: color-mix(in srgb, var(--ink) 8%, var(--surface));
}

.w1-danger {
  background: var(--problem-solid);
  color: var(--problem-onSolid);
}

.w1-danger:hover {
  background: var(--problem-solidPressed);
}

.w1-link {
  min-height: var(--size-touchMin);
  margin-block-start: var(--space-lg);
  padding: 0 var(--space-md);
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.w1-notice {
  padding: var(--space-md) 14px;
  border-radius: var(--radius-md);
  background: var(--surfaceSunken);
  box-shadow: inset 0 0 0 var(--size-hairline) var(--border);
  color: var(--inkSoft);
}

.w1-error {
  color: var(--problem-on);
  font-weight: 600;
}

.w1-done {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--type-title3-size);
  line-height: var(--type-title3-line);
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .w1-secondary {
    background: transparent;
  }
}

[hidden] {
  display: none !important;
}
