/* Account access shares the application's type, accent and control shapes. */
body.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: #f7f7f8;
}
.auth-header {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.6px;
}
.auth-brand:hover { text-decoration: none; color: var(--accent); }
.auth-page .page {
  display: grid;
  flex: 1;
  place-items: center;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 32px 24px 96px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border: 1px solid #e2e4e8;
  border-radius: 20px;
  background: #fff;
}
.auth-heading { margin-bottom: 32px; }
.auth-heading h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.8px;
}
.auth-heading p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.auth-form { display: grid; gap: 24px; }
.auth-field { display: grid; gap: 8px; min-width: 0; }
.auth-field label { margin: 0; color: var(--body); font-size: 14px; font-weight: 500; line-height: 20px; }
.auth-card .auth-field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d7dae0;
  border-radius: var(--control-radius, 10px);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 140ms, box-shadow 140ms;
}
.auth-card .auth-field input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(62 106 225 / 12%);
}
.auth-password { position: relative; min-width: 0; }
.auth-card .auth-password input { padding-inline-end: 56px; }
.auth-password .auth-password-toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.auth-password-toggle span { display: flex; }
.auth-password-toggle .material-icon { width: 20px; height: 20px; }
.auth-password .auth-password-toggle:hover { background: var(--surface); color: var(--ink); }
.auth-form .auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 140ms, transform 140ms;
}
.auth-submit:active { transform: translateY(1px); }
.auth-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .auth-submit:hover { transform: translateY(-1px); }
}
@media (max-width: 599px) {
  .auth-header { padding: 16px 24px; }
  .auth-page .page { align-items: start; padding: 48px 20px calc(32px + env(safe-area-inset-bottom)); }
  .auth-card { padding: 24px; border-radius: 16px; }
  .auth-heading h1 { font-size: 26px; }
}
@media (max-height: 600px) {
  .auth-page .page { align-items: start; padding-top: 16px; padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-form .auth-submit { transition: background-color 140ms; transform: none; }
}
