:root {
  color-scheme: light;
  --paper: #f8f3e9;
  --card: #fffaf1;
  --ink: #25291f;
  --muted: #53594c;
  --line: #d8d1c3;
  --sage: #4f6348;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 system-ui, "Noto Sans JP", sans-serif; }
.auth-layout {
  position: relative;
  isolation: isolate;
  overflow: clip;
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 5vw, 4rem) 3rem;
  text-align: center;
}
.auth-layout::before, .auth-layout::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(9rem, 26vw, 20rem);
  aspect-ratio: 1;
  background: url('/integration-auth/yamaboshi-flower.svg') center / contain no-repeat;
  opacity: .09;
  pointer-events: none;
}
.auth-layout::before { top: 2rem; left: 0; transform: rotate(-15deg); }
.auth-layout::after { bottom: 1rem; right: 0; transform: rotate(12deg); }
.auth-layout > h1 {
  font-family: "Newsreader", Georgia, "Yu Mincho", serif;
  font-weight: 500;
  line-height: 1.14;
}
.auth-layout > h1 { margin: .5rem 0; font-size: clamp(2rem, 6vw, 4.25rem); }
.auth-layout > h1::after {
  display: block;
  content: "";
  width: 4rem;
  height: 3px;
  margin: 1rem auto 0;
  background: var(--sage);
  border-radius: 2px;
}
.auth-subtitle { margin: .7rem 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(1.1rem, 2vw, 1.55rem); }
.auth-intro { max-width: 46rem; margin: .6rem auto 1.6rem; color: var(--muted); }
.auth-return {
  display: inline-block;
  margin: .6rem 0 0;
  padding: .3rem .9rem;
  border-radius: 1rem;
  background: #eaece0;
  color: #394e34;
}
.auth-panel {
  max-width: 31rem;
  margin: auto;
  padding: clamp(.8rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--card);
  box-shadow: 0 8px 28px #342e2410;
}
#auth { display: flex; justify-content: center; min-width: 0; }
#auth > div { width: 100%; max-width: 100%; min-width: 0; }
#status { color: var(--muted); }
#status:empty { display: none; }
.auth-language, .auth-help { display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem 1.2rem; }
.auth-language { justify-content: end; }
.auth-help { margin-top: 1rem; }
.auth-language a, .auth-help a { display: inline-flex; align-items: center; min-height: 44px; }
main a { color: #394e34; text-underline-offset: 4px; }
main a[aria-current] { font-weight: 700; text-decoration-thickness: 2px; }
main button {
  min-height: 44px;
  padding: .5rem 1rem;
  border: 0;
  border-radius: .4rem;
  background: var(--sage);
  color: white;
  font: inherit;
  cursor: pointer;
}
main a:focus-visible, main button:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
[hidden] { display: none !important; }
.auth-diagnostics { max-width: 42rem; margin: 2rem auto; padding: 0 1rem; }
#vocabulary-test { padding: 1rem; border: 1px solid var(--line); }
#vocabulary-test select { max-width: 100%; min-height: 44px; font: inherit; }
#vocabulary-state { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .auth-language { justify-content: center; }
  .auth-layout::before, .auth-layout::after { opacity: .08; }
}
