/* Account pages (sign in, sign up, password reset, email verification) on Material 3 tokens. */

.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 11rem);
  padding-block: 16px;
}

.auth-card {
  width: 100%;
  max-width: 448px;
  padding: 32px 24px;
  border-radius: var(--md-sys-shape-corner-extra-large);
  background: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
}
@media (min-width: 600px) {
  .auth-card { padding: 40px; }
}

.auth-header { margin-block-end: 24px; text-align: center; }
.auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--md-sys-shape-corner-large);
}
.auth-title {
  margin: 0;
  font: var(--md-sys-typescale-headline-small-weight) var(--md-sys-typescale-headline-small-size) / var(--md-sys-typescale-headline-small-line-height) var(--md-sys-typescale-headline-small-font);
}
.auth-subtitle {
  margin: 8px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size) / var(--md-sys-typescale-body-medium-line-height) var(--md-sys-typescale-body-medium-font);
}
.auth-subtitle strong { color: var(--md-sys-color-on-surface); font-weight: 500; }

.auth-tabs { margin-block-end: 24px; background: transparent; }
.auth-tabs .md-tabs__tab { flex: 1; }

.auth-social { display: grid; gap: 8px; }
.auth-social-button { width: 100%; gap: 12px; }
.auth-social-icon { width: 18px; height: 18px; flex: none; }
.auth-social-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  font: var(--md-sys-typescale-label-small-weight) var(--md-sys-typescale-label-small-size) / 1 var(--md-sys-typescale-label-small-font);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 20px;
  color: var(--md-sys-color-on-surface-variant);
  font: var(--md-sys-typescale-label-medium-weight) var(--md-sys-typescale-label-medium-size) / var(--md-sys-typescale-label-medium-line-height) var(--md-sys-typescale-label-medium-font);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--md-sys-color-outline-variant);
}

.auth-form { display: grid; gap: 16px; }
.auth-form .md-field { --md-field-label-bg: var(--md-sys-color-surface-container-low); }
.auth-submit { width: 100%; }
.auth-link { justify-self: center; }
.auth-state-card { display: grid; gap: 16px; }
.auth-state-card .auth-subtitle { margin: 0; }
.auth-actions { display: grid; gap: 8px; margin-block-start: 16px; }
.auth-note { margin-block-start: 16px; text-align: center; }

/* Password field: the show/hide icon button sits inside the field box. */
.auth-password-field .md-field__box { padding-inline-end: 4px; }
.auth-password-toggle { flex: none; align-self: center; }

.md-notice p { margin: 0; }
.auth-notice { margin-block-end: 8px; }
.auth-status-icon {
  --md-icon-size: 32px;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-block-end: 16px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}
