@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #090a10;
  --surface: rgb(19 20 29 / 94%);
  --text: #f4f1ec;
  --muted: #aaa8ae;
  --line: rgb(255 255 255 / 16%);
  --red: #e23745;
  --violet: #7c4dff;
  --error: #ff7881;
  --body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 12%, rgb(124 77 255 / 16%), transparent 28rem),
    radial-gradient(circle at 22% 82%, rgb(226 55 69 / 13%), transparent 28rem),
    var(--bg);
  font-family: var(--body);
  line-height: 1.65;
}

button, input, select { font: inherit; }
a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #b69cff;
  outline-offset: 3px;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr);
}

.auth-visual {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #0a0b11;
}

.auth-visual__photo,
.auth-visual__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-visual__photo {
  object-fit: cover;
  object-position: 53% 44%;
}

.auth-visual__veil {
  background:
    linear-gradient(0deg, #090a10 0%, rgb(9 10 16 / 30%) 48%, rgb(9 10 16 / 18%) 100%),
    linear-gradient(90deg, rgb(18 7 17 / 63%), transparent 65%),
    radial-gradient(circle at 18% 28%, rgb(188 30 64 / 34%), transparent 34%);
}

.auth-visual__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 60px);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.auth-brand svg {
  width: 104px;
  height: 104px;
}

.auth-brand span {
  color: var(--red);
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: .09em;
}

.auth-visual__copy {
  max-width: 440px;
  padding-bottom: 6vh;
}

.auth-visual__copy p:first-child {
  margin: 0 0 12px;
  color: #e5e1e2;
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.45;
}

.auth-visual__copy p:last-child {
  margin: 0;
  color: #c2bec2;
  font-size: 14px;
}

.auth-main {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 54px clamp(28px, 6vw, 96px);
}

.auth-panel { width: min(100%, 590px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.back-link:hover { color: var(--text); }

.auth-kicker {
  margin: 0 0 6px;
  color: var(--red);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .14em;
}

.auth-panel h1 {
  margin: 0;
  font-family: serif;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1.4;
}

.auth-intro {
  margin: 12px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

.step-indicator {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 28px 0 34px;
}

.step-indicator span {
  padding-top: 9px;
  border-top: 2px solid #33343e;
  color: #77757c;
  font-size: 11px;
}

.step-indicator span.is-active {
  border-color: var(--red);
  color: var(--text);
}

.google-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.google-button {
  border: 1px solid #3b3c47;
  color: var(--text);
  background: #1a1b24;
}

.google-button:hover { background: #22232e; }

.google-mark {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.divider {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  margin: 24px 0;
  color: #77757c;
  font-size: 11px;
}

.divider::before,
.divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.form-stack {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

fieldset.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.fieldset-label {
  font-size: 13px;
  font-weight: 600;
}

.required {
  margin-left: 8px;
  color: #ff6f78;
  font-size: 10px;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #3a3b47;
  border-radius: 4px;
  color: var(--text);
  background: #14151e;
}

.field input::placeholder { color: #6e6c74; }
.field input:hover,
.field select:hover { border-color: #555663; }
.field input:focus,
.field select:focus { border-color: #9a78ff; }

.field-hint,
.privacy-note {
  margin: 0;
  color: #85838a;
  font-size: 11px;
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 66px; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 48px;
  min-height: 36px;
  border: 0;
  color: #aaa8ae;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  transform: translateY(-50%);
}

.primary-button {
  border: 1px solid rgb(255 255 255 / 10%);
  color: #fff;
  background: linear-gradient(100deg, #ef2938 0%, #d51d53 52%, #7134ff 100%);
  box-shadow: 0 14px 36px rgb(226 55 69 / 18%);
}

.primary-button:hover { filter: brightness(1.1); }

.secondary-button {
  border: 1px solid #3b3c47;
  color: var(--text);
  background: transparent;
}

.auth-meta {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.auth-meta a,
.inline-link {
  color: #d4c5ff;
  text-underline-offset: 3px;
}

.auth-meta a:hover,
.inline-link:hover { color: #fff; }

.forgot-link {
  justify-self: end;
  margin-top: -8px;
  color: #c8b9f5;
  font-size: 11px;
}

.registration-step[hidden],
.guardian-confirmation[hidden] { display: none; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice { position: relative; }

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid #393a45;
  border-radius: 4px;
  color: #b7b4ba;
  background: #14151e;
  cursor: pointer;
  font-size: 12px;
}

.choice input:checked + span {
  border-color: #9c72ff;
  color: #fff;
  background: rgb(124 77 255 / 14%);
}

.choice input:focus-visible + span {
  outline: 2px solid #b69cff;
  outline-offset: 3px;
}

.consent-box,
.notification-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgb(24 25 35 / 72%);
}

.consent-box h2,
.notification-box h2 {
  margin: 0 0 5px;
  font-size: 14px;
}

.consent-box > p,
.notification-box > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}

.check-row + .check-row { margin-top: 10px; }

.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--violet);
}

.notification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.notification-grid .check-row { margin: 0; }

.form-actions {
  display: grid;
  grid-template-columns: .42fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.form-message {
  margin: 4px 0 0;
  color: var(--error);
  font-size: 12px;
}

.status-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgb(124 77 255 / 12%), transparent 52%),
    var(--surface);
}

.status-card::before {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgb(226 55 69 / 13%);
  content: "";
  filter: blur(35px);
}

.status-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid #9871ff;
  border-radius: 50%;
  color: #b99eff;
  font-size: 26px;
}

.status-card h1 { position: relative; }

.status-card p {
  color: var(--muted);
  font-size: 13px;
}

.status-card .primary-button { margin-top: 24px; }

.legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 38px;
  color: #77757c;
  font-size: 10px;
}

@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }

  .auth-visual {
    position: relative;
    min-height: 250px;
  }

  .auth-visual__content {
    min-height: 250px;
    padding: 22px 24px;
  }

  .auth-visual__photo { object-position: 53% 35%; }

  .auth-visual__veil {
    background:
      linear-gradient(0deg, #090a10 0%, transparent 72%),
      linear-gradient(90deg, rgb(18 7 17 / 62%), transparent 72%);
  }

  .auth-brand svg {
    width: 74px;
    height: 74px;
  }

  .auth-visual__copy { padding: 0; }
  .auth-visual__copy p:first-child { font-size: 24px; }
  .auth-visual__copy p:last-child { display: none; }

  .auth-main {
    padding: 36px 24px 54px;
  }

  .back-link { margin-bottom: 28px; }
}

@media (max-width: 520px) {
  .auth-visual { min-height: 214px; }

  .auth-visual__content {
    min-height: 214px;
    padding: 14px 18px 20px;
  }

  .auth-brand svg {
    width: 60px;
    height: 60px;
  }

  .auth-brand span { font-size: 16px; }
  .auth-visual__copy p:first-child { font-size: 20px; }

  .auth-main {
    place-items: start center;
    padding: 30px 20px 48px;
  }

  .auth-panel h1 { font-size: 29px; }
  .auth-intro { margin-bottom: 26px; }

  .choice-grid,
  .notification-grid { grid-template-columns: 1fr; }

  .form-actions { grid-template-columns: 1fr; }
  .form-actions .secondary-button { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Readability pass */
.step-indicator span,.divider,.required,.field-hint,.privacy-note,.password-toggle,.auth-meta,.forgot-link,.choice span,.consent-box>p,.notification-box>p,.check-row,.form-message,.legal-links{font-size:13px}
