/* ─── signup / auth page ─── */
.auth { min-height: 100svh; }
.auth__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100svh; }

.auth__panel { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); }
.auth__top { display: flex; justify-content: space-between; align-items: center; }
.auth__back { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.auth__back:hover { color: var(--text); }
.auth__body { flex: 1; display: flex; align-items: center; padding: 48px 0; }
.auth__step { width: 100%; max-width: 420px; margin: 0 auto; display: grid; gap: 18px; }
.auth__step.is-entering { animation: authIn 0.5s var(--ease); }
@keyframes authIn { from { opacity: 0; transform: translateY(12px); } }
.auth__title { font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.auth__lead { color: #d0ccc4; font-size: 16.5px; }
.auth__lead strong { color: var(--text); font-weight: 600; word-break: break-all; }
.auth__form { display: grid; gap: 14px; margin-top: 8px; }

.field { display: grid; gap: 8px; }
.field__label { font-size: 14px; font-weight: 600; }
.field__input {
  height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font: inherit; font-size: 16px; outline: 0; transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input::placeholder { color: var(--dim); }
.field__input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field__input[aria-invalid='true'] { border-color: #ff4d4d; box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.14); }
.field__error { min-height: 18px; font-size: 13px; color: #ff7a7a; }
.field__error:empty { min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn.is-loading .arrow { display: none; }
.btn.is-loading::after {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite;
}
.btn.is-loading:disabled { opacity: 1; cursor: progress; }
.auth__fine { font-size: 13px; color: var(--dim); }
.auth__fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.auth__fine a:hover { color: var(--text); }
.auth__switch { font-size: 14px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }

.auth__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255, 90, 31, 0.35);
}
.auth__tips { display: grid; gap: 10px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.auth__tips li { display: flex; gap: 10px; }
.auth__tips li::before { content: '•'; color: var(--accent); }
.auth__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.auth__actions .btn--ghost:disabled { opacity: 0.55; }
.auth__foot { font-size: 13px; }

/* visual */
.auth__visual { position: relative; overflow: hidden; margin: 12px; border-radius: 20px; background: #000; }
.auth__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.auth__visual-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 10%, rgba(0, 0, 0, 0) 55%); }
.auth__visual-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 4vw, 48px); display: grid; gap: 12px; justify-items: start; }
.auth__quote { font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.auth__caption { color: var(--accent); }

/* toast */
.toast {
  position: fixed; top: 24px; right: 24px; z-index: 120; display: flex; align-items: flex-start; gap: 12px;
  width: min(400px, calc(100vw - 32px)); padding: 16px 16px 16px 14px; border-radius: 14px;
  background: #18181b; border: 1px solid var(--line-2); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(-12px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #1f9d55; color: #fff; }
.toast__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.toast__title { font-size: 15px; }
.toast__text { font-size: 14px; color: var(--muted); word-break: break-word; }
.toast__close { flex: none; width: 26px; height: 26px; border-radius: 50%; font-size: 11px; color: var(--muted); transition: background 0.2s, color 0.2s; }
.toast__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

@media (max-width: 900px) {
  .auth__grid { grid-template-columns: 1fr; }
  .auth__visual { display: none; }
  .auth__body { padding: 32px 0; }
}
@media (max-width: 640px) {
  .toast { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); right: 16px; transform: translateY(12px); }
}
