/* Login page for the GCP test. Uses the members site tokens (--page, --panel, --ink, --muted,
   --line, --button, --on-button, --focus) so light/dark follow the site's own theme choice.
   Provider buttons follow the Google and Microsoft sign-in button guidelines. */
:root {
  --nn-g-bg: #fff; --nn-g-ink: #1f1f1f; --nn-g-line: #747775;
  --nn-ms-bg: #fff; --nn-ms-ink: #5e5e5e; --nn-ms-line: #8c8c8c;
  --nn-card-shadow: 0 1px 2px rgb(11 58 140 / 8%), 0 12px 32px rgb(11 58 140 / 10%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --nn-g-bg: #131314; --nn-g-ink: #e3e3e3; --nn-g-line: #8e918f;
    --nn-ms-bg: #2f2f2f; --nn-ms-ink: #fff; --nn-ms-line: #2f2f2f;
    --nn-card-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px rgb(0 0 0 / 35%);
  }
}
:root[data-theme="dark"] {
  --nn-g-bg: #131314; --nn-g-ink: #e3e3e3; --nn-g-line: #8e918f;
  --nn-ms-bg: #2f2f2f; --nn-ms-ink: #fff; --nn-ms-line: #2f2f2f;
  --nn-card-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px rgb(0 0 0 / 35%);
}

.nn-auth { display: grid; place-items: start center; padding: clamp(1.5rem, 6vw, 4rem) 0 clamp(2rem, 8vw, 5rem); }
.nn-auth-card {
  width: min(100%, 26rem); box-sizing: border-box; padding: clamp(1.5rem, 5vw, 2.25rem);
  background: var(--page); color: var(--ink); border: 1px solid var(--line); border-radius: 1.25rem;
  box-shadow: var(--nn-card-shadow);
}
.nn-auth-card h1 {
  margin: 0 0 .5rem; font-family: Manrope, Inter, system-ui, sans-serif; font-size: clamp(1.6rem, 4.5vw, 1.9rem);
  line-height: 1.15; letter-spacing: -.01em;
}
.nn-auth-sub { margin: 0 0 1.5rem; color: var(--muted); line-height: 1.5; }
.nn-auth-sub strong { color: var(--ink); overflow-wrap: anywhere; }

.nn-auth-providers { display: grid; gap: .75rem; }
.nn-btn {
  display: flex; align-items: center; justify-content: center; gap: .75rem; box-sizing: border-box; width: 100%;
  min-height: 3rem; padding: .7rem 1rem; border-radius: .75rem; font: 600 1rem/1.2 Inter, system-ui, sans-serif;
  text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s, border-color .15s;
}
.nn-btn svg { flex: none; width: 1.25rem; height: 1.25rem; }
.nn-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.nn-btn-google { background: var(--nn-g-bg); color: var(--nn-g-ink); border: 1px solid var(--nn-g-line); font-family: Roboto, Inter, system-ui, sans-serif; }
.nn-btn-microsoft { background: var(--nn-ms-bg); color: var(--nn-ms-ink); border: 1px solid var(--nn-ms-line); font-family: "Segoe UI", Inter, system-ui, sans-serif; }
.nn-btn-google:hover, .nn-btn-microsoft:hover { box-shadow: 0 1px 3px rgb(0 0 0 / 18%), 0 2px 8px rgb(0 0 0 / 10%); }
.nn-btn-primary { background: var(--button); color: var(--on-button); border: 1px solid var(--button); }
.nn-btn-primary:hover { filter: brightness(1.08); }

.nn-auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0; color: var(--muted); font-size: .875rem; }
.nn-auth-divider::before, .nn-auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.nn-auth-form { display: grid; gap: .5rem; }
.nn-auth-form label { font-weight: 600; font-size: .9375rem; }
.nn-auth-form input {
  box-sizing: border-box; width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 1px solid var(--control-line, var(--muted));
  border-radius: .75rem; background: var(--page); color: var(--ink); font: 1rem/1.3 Inter, system-ui, sans-serif;
}
.nn-auth-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.nn-auth-form .nn-btn { margin-top: .5rem; }
.nn-auth-form input.nn-otp {
  text-align: center; font: 600 1.75rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .45em;
  padding-left: calc(.9rem + .45em); min-height: 3.75rem;
}
.nn-auth-note { margin: 1.25rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.nn-auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.25rem; }
.nn-auth-links form { margin: 0; }
.nn-linkbutton {
  padding: .5rem 0; min-height: 2.75rem; background: none; border: 0; color: var(--ink); font: 600 .9375rem Inter, system-ui, sans-serif;
  text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.nn-linkbutton:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.nn-auth .notice { margin: 0 0 1.25rem; }
@media (prefers-reduced-motion: reduce) { .nn-btn { transition: none; } }
