/* The layout login.html and register.html share: a centered card with a
   form, on top of tokens.css (colors) and brand.css (the banner). One file,
   two templates point at it -- split it into two only if the pages
   actually diverge for real someday. */

body { padding: 3rem 1rem; display: flex; justify-content: center; }
main { width: 100%; max-width: 24rem; }

h1 { font-size: 1.4rem; margin: 0 0 1.25rem; }
label { display: block; font-weight: 600; margin: .85rem 0 .3rem; }
input[type=text], input[type=password], input[type=email] {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--fg); font: inherit;
}
button {
  width: 100%; font: inherit; font-weight: 700; padding: .7rem 1rem; border-radius: 6px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  cursor: pointer; margin-top: 1.25rem; transition: filter .15s ease;
}
button:hover:not(:disabled) { filter: brightness(.95); }
@media (prefers-color-scheme: dark) {
  button:hover:not(:disabled) { filter: brightness(1.08); }
}
button:disabled { opacity: .5; cursor: not-allowed; }

p.note { color: var(--muted); font-size: .9rem; margin-top: 1.1rem; }
p.note a { color: var(--accent); }
.status { margin-top: .9rem; padding: .7rem .85rem; border-radius: 6px; font-size: .9rem; }
.status.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.status.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.status:empty { display: none; }

.divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0 0;
           color: var(--muted); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { display: block; width: 100%; box-sizing: border-box; text-align: center;
              text-decoration: none; font-weight: 700; padding: .7rem 1rem; border-radius: 6px;
              border: 1px solid var(--line); background: var(--panel); color: var(--fg);
              margin-top: 1.25rem; transition: filter .15s ease; }
.btn-google:hover { background: var(--bg); }
