/* auth.oujashin.jp（ログイン一式）。chat.oujashin.jp と同じ見た目（2026-11-07 本人「auth のデザインを chat に合わせて」） */
:root {
  --bg: #ffffff; --fg: #0d0d0d; --dim: #5d5d5d; --faint: #8f8f8f; --line: #e5e5e5; --hover: #ececec; --bubble: #f4f4f4;
  --ink: #0d0d0d; --ink-fg: #ffffff; --danger: #e02e2a; --ok: #15803d;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #212121; --fg: #ececec; --dim: #b4b4b4; --faint: #8a8a8a; --line: #ffffff1a; --hover: #2f2f2f; --bubble: #303030;
    --ink: #ececec; --ink-fg: #0d0d0d; --danger: #f87171; --ok: #4ade80;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Noto Sans JP", ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
[hidden] { display: none !important; }

.a-wrap { min-height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 360px; margin: 0 auto; padding: 40px 20px 64px; }
.a-brand { text-align: center; margin-bottom: 26px; line-height: 0; }
.a-brand img { height: 30px; width: auto; max-width: 100%; }
@media (prefers-color-scheme: dark) { .a-brand img { filter: invert(1) hue-rotate(180deg); } }
.a-h { font-size: 26px; font-weight: 600; text-align: center; margin: 0 0 28px; letter-spacing: .02em; }
.a-p { color: var(--dim); text-align: center; font-size: 14px; margin: -12px 0 24px; }

.a-btn {
  appearance: none; border: 0; border-radius: 999px; background: var(--ink); color: var(--ink-fg);
  font: inherit; font-weight: 500; font-size: 15px; padding: 12px 20px; width: 100%; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.a-btn:hover { opacity: .88; }
.a-btn:disabled { opacity: .4; cursor: default; }
.a-btn--sub { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.a-btn--sub:hover { background: var(--hover); opacity: 1; }
.ic { width: 18px; height: 18px; flex: none; }

.a-or { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; color: var(--faint); font-size: 12.5px; }
.a-or::before, .a-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.a-form { display: flex; flex-direction: column; gap: 12px; }
.a-in {
  width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 14px;
  font: inherit; font-size: 15px; padding: 11px 14px; outline: 0;
}
.a-in:focus { border-color: var(--faint); }
.a-in::placeholder { color: var(--faint); }
.a-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.a-check input { width: 16px; height: 16px; accent-color: var(--ink); }
.a-ts { display: flex; justify-content: center; min-height: 0; }
.a-ts .cf-turnstile:empty { display: none; }

.a-note { font-size: 14px; text-align: center; margin: -8px 0 20px; color: var(--dim); }
.a-note--error { color: var(--danger); }
.a-note--success { color: var(--ok); }
.a-btn + .a-note { margin: 12px 0 0; }

.a-foot { text-align: center; font-size: 13.5px; color: var(--faint); margin: 28px 0 0; }
.a-foot a { color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--line); }
.a-foot a:hover { color: var(--fg); border-color: var(--fg); }
