/* Sign-in panel and account pages. Uses the colour tokens from site.css. */
.auth h1, .center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.field { position: relative; display: flex; }
.field input {
  flex: 1 1 auto; min-width: 0; width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit;
}
.field-email input, .field-password input { padding-left: 44px; }
.field-password input { padding-right: 46px; }
.field-email::before, .field-password::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  background: var(--muted); pointer-events: none;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.field-email { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 8.2L4.4 7.5v1.9L12 15l7.6-5.6V7.5z'/%3E%3C/svg%3E"); }
.field-password { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3z'/%3E%3C/svg%3E"); }

.reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 0; border-radius: 6px; background: transparent; cursor: pointer;
}
.reveal::before {
  content: ""; position: absolute; inset: 8px; background: var(--muted);
  --eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c5 0 9 4.5 10 7-1 2.5-5 7-10 7S3 14.5 2 12c1-2.5 5-7 10-7zm0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4z'/%3E%3C/svg%3E");
  -webkit-mask: var(--eye) center / contain no-repeat; mask: var(--eye) center / contain no-repeat;
}
.reveal[aria-pressed="true"]::before { background: var(--accent); }
.reveal:focus-visible, .link:focus-visible, .link-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.link, .link-button { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover, .link-button:hover { text-decoration: underline; }
.link-button { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 500; cursor: pointer; }

.btn-wide { width: 100%; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.btn-provider { gap: 10px; }

.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1 1 0; height: 1px; background: var(--line); }

.provider-mark { width: 18px; height: 18px; flex: 0 0 18px; background: center / contain no-repeat; }
.provider-google { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.8 2.5 30.3 0 24 0 14.6 0 6.5 5.4 2.6 13.2l7.9 6.2C12.4 13.7 17.7 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.700c-.6 3-2.3 5.5-4.8 7.2l7.700 6c4.5-4.2 6.900-10.300 6.900-17.700z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.6c-.5-1.5-.8-3-.8-4.600s.3-3.100.8-4.600l-7.900-6.200C.9 16.500 0 20.100 0 24s.9 7.500 2.600 10.800z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.500 0 11.900-2.100 15.900-5.800l-7.700-6c-2.200 1.500-5 2.300-8.200 2.300-6.300 0-11.600-4.200-13.500-9.900l-7.900 6.200C6.500 42.600 14.600 48 24 48z'/%3E%3C/svg%3E"); }
.provider-microsoft { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath fill='%23F25022' d='M1 1h9v9H1z'/%3E%3Cpath fill='%237FBA00' d='M11 1h9v9h-9z'/%3E%3Cpath fill='%2300A4EF' d='M1 11h9v9H1z'/%3E%3Cpath fill='%23FFB900' d='M11 11h9v9h-9z'/%3E%3C/svg%3E"); }

.code-input { text-align: center; font-size: 26px; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
