/* ============================================================
   BeLegend — login / signup pages
   ============================================================ */
:root {
  --ink: #0a0a0c; --ink-2: #121216; --ink-3: #1a1a20; --panel: #16161b;
  --bone: #f2efe6; --bone-dim: #b9b5a8; --blood: #ff2b1f; --gold: #f5c518;
  --line: rgba(242, 239, 230, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  min-height: 100vh; display: grid; place-items: center; padding: 30px 16px;
  font-family: "Oswald", system-ui, sans-serif; color: var(--bone); background: var(--ink);
  position: relative; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,.82), rgba(10,10,12,.94)),
    radial-gradient(60% 50% at 70% 20%, rgba(255,43,31,.3), transparent 70%),
    url("../assets/img/hero-rooftop.jpg") center / cover no-repeat;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(242,239,230,.05) 1px, transparent 1.4px);
  background-size: 6px 6px;
}

a { color: inherit; }
.auth-card {
  position: relative; z-index: 2; width: min(100%, 420px);
  background: rgba(18,18,22,.92); border: 2px solid var(--line);
  box-shadow: 12px 12px 0 var(--blood), 0 20px 60px rgba(0,0,0,.6);
  padding: 40px 34px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 6px; }
.auth-brand .mark {
  display: grid; place-items: center; width: 40px; height: 40px; background: var(--blood); color: #fff;
  font-family: "Anton", sans-serif; font-size: 1.15rem;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.auth-brand .txt { font-family: "Anton", sans-serif; font-size: 1.7rem; letter-spacing: .02em; }
.auth-brand .txt em { color: var(--blood); font-style: normal; }
.auth-jp { text-align: center; font-family: "Noto Sans JP", sans-serif; color: var(--bone-dim); font-size: .72rem; letter-spacing: .14em; margin-bottom: 22px; }

.auth-card h1 { font-family: "Anton", sans-serif; font-size: 2rem; text-transform: uppercase; line-height: 1; margin-bottom: 6px; }
.auth-card h1 .stroke { color: transparent; -webkit-text-stroke: 1.6px var(--blood); }
.auth-sub { color: var(--bone-dim); font-size: .95rem; margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-family: "Bebas Neue", sans-serif; letter-spacing: .14em; font-size: .9rem; color: var(--bone-dim); margin-bottom: 6px; }
.field input {
  width: 100%; background: var(--ink); border: 2px solid var(--line); color: var(--bone);
  padding: 13px 14px; font-family: "Oswald"; font-size: 1rem;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.field input:focus { outline: none; border-color: var(--blood); }

.btn-blood {
  width: 100%; margin-top: 6px; background: var(--blood); color: #fff; border: 2px solid var(--blood);
  font-family: "Bebas Neue", sans-serif; letter-spacing: .16em; font-size: 1.15rem; padding: 14px;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-blood:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--bone); }
.btn-blood:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

.auth-msg { min-height: 1.2em; margin-top: 14px; font-size: .9rem; letter-spacing: .02em; text-align: center; }
.auth-msg.err { color: var(--blood); }
.auth-msg.ok { color: var(--gold); }

.auth-foot { margin-top: 22px; text-align: center; color: var(--bone-dim); font-size: .9rem; }
.auth-foot a { color: var(--gold); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }
.auth-back { display: block; text-align: center; margin-top: 16px; color: var(--bone-dim); font-family: "Bebas Neue", sans-serif; letter-spacing: .14em; font-size: .9rem; text-decoration: none; }
.auth-back:hover { color: var(--blood); }

.hint {
  margin-top: 18px; padding: 12px 14px; background: var(--ink); border: 1px dashed var(--line);
  font-size: .82rem; color: var(--bone-dim); line-height: 1.5;
}
.hint strong { color: var(--bone); }

/* ---------- OTP step ---------- */
.auth-step[hidden] { display: none; }
.otp-to { color: var(--bone); font-weight: 600; }
.otp-input {
  text-align: center; font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem; letter-spacing: 0.6em; padding-left: 0.6em;
}
.otp-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 0.86rem; }
.otp-resend { color: var(--gold); font-weight: 600; background: none; border: none; cursor: pointer; font-family: "Oswald"; font-size: 0.9rem; padding: 0; }
.otp-resend:disabled { color: var(--bone-dim); cursor: default; }
.otp-change { color: var(--bone-dim); text-decoration: underline; background: none; border: none; cursor: pointer; font-family: "Oswald"; font-size: 0.86rem; padding: 0; }
.otp-change:hover { color: var(--blood); }
.hint.code { border-color: rgba(245,197,24,.4); }
.hint.code strong { color: var(--gold); font-size: 1.1rem; letter-spacing: 0.1em; }
.auth-forgot { display: block; text-align: right; margin: -8px 0 16px; color: var(--gold); font-size: 0.82rem; }
.auth-forgot:hover { text-decoration: underline; }
