/* ============================================================
   ログイン / アカウント登録 — 単独読み込みページ
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #05080f;
  --surface: #0b1120;
  --line: rgba(139, 163, 210, .14);
  --line-strong: rgba(139, 163, 210, .30);
  --ink: #f2f5fb;
  --muted: #93a1bd;
  --faint: #5f6d8c;
  --accent: #ff2e4f;
  --accent-2: #ff5c74;
  --accent-soft: rgba(255, 46, 79, .14);
  --accent-line: rgba(255, 46, 79, .40);
  --display: "Oswald", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }

.account-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

/* --- 左:ブランドパネル --- */
.account-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10%;
  background:
    radial-gradient(700px 420px at 15% 20%, rgba(255, 46, 79, .16), transparent 60%),
    radial-gradient(800px 500px at 90% 90%, rgba(63, 140, 255, .12), transparent 60%),
    linear-gradient(160deg, #0c1428, #060a15);
  border-right: 1px solid var(--line);
  animation: brand-in .7s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes brand-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.account-brand::after {
  content: "";
  position: absolute;
  inset: auto -18% -34% auto;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(255, 46, 79, .18);
  box-shadow: inset 0 0 90px rgba(255, 46, 79, .08);
  pointer-events: none;
}
.account-brand p {
  margin: 30px 0 4px;
  font: 600 12px var(--display);
  letter-spacing: .34em;
  color: var(--accent-2);
}
.account-brand h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.account-brand span { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* --- 右:カード --- */
.account-card {
  width: 100%;
  max-width: 470px;
  align-self: center;
  justify-self: center;
  margin: 40px 24px;
  background: linear-gradient(165deg, rgba(24, 34, 58, .92), rgba(9, 14, 27, .96));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: card-in .7s .1s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.account-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 28px;
  background: rgba(6, 10, 21, .7);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.account-tabs button {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: 700 13.5px "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: color .18s, background .18s, box-shadow .18s;
}
.account-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #d31336);
  box-shadow: 0 6px 18px rgba(255, 46, 79, .4);
}

form { display: grid; gap: 16px; }
form h2 { font-size: 22px; font-weight: 900; margin: 0; letter-spacing: -.01em; }
form > p { font-size: 12px; color: var(--muted); margin: -9px 0 4px; }
form > label { font-size: 11.5px; font-weight: 700; color: var(--muted); display: grid; gap: 7px; letter-spacing: .04em; }
input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: rgba(6, 10, 21, .72);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder { color: var(--faint); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
.role-options { display: flex; gap: 8px; }
.role-options label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(6, 10, 21, .5);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.role-options label:has(input:checked) {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(255, 46, 79, .08);
}
.role-options input { width: auto; min-height: 0; accent-color: var(--accent); margin: 0; }

form > button {
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  min-height: 52px;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #d31336);
  color: #fff;
  font: 700 15px "Noto Sans JP", sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 46, 79, .35);
  transition: transform .15s, filter .15s;
}
form > button:hover { transform: translateY(-1px); filter: brightness(1.08); }
form > button:active { transform: translateY(1px) scale(.99); }

#auth-message { font-size: 12.5px; font-weight: 700; color: var(--accent-2); margin-top: 16px; min-height: 18px; }

/* ============================================================
   モバイル
   ============================================================ */
@media (max-width: 760px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-brand {
    min-height: 0;
    padding: 44px 26px 36px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .account-brand p { margin-top: 20px; }
  .account-brand h1 { font-size: 23px; }
  .account-brand span { font-size: 12.5px; }
  .account-card {
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 28px 22px 48px;
  }
}

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