/*
 * Before the dashboard: signing in, and claiming a place. Built on
 * vendor.css's tokens. The shell is bare on both (vendor-app.js), so these
 * screens own the width.
 */

/* ── Sign in: the form on white, the promise on green ────────────────── */

#app.v-auth-mode { display: flex; min-height: calc(100vh - 80px); }

.v-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--gap);
  width: 100%;
  animation: v-rise 0.6s var(--spring) both;
}
.v-auth-form {
  display: grid;
  place-items: center;
  padding: 48px 28px;
  border-radius: var(--r-panel);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.v-auth-form-in { width: 100%; max-width: 400px; }
.v-auth-title { margin: 10px 0 0; font-size: 36px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.v-auth-sub { margin: 10px 0 0; font-size: var(--t-body); color: var(--ink-2); }
.v-auth-rule { margin: 26px 0 8px; border: 0; border-top: 1px solid var(--sep); }
#v-signin .v-btn-go { width: 100%; margin-top: 20px; min-height: 50px; font-size: var(--t-lead); }
.v-signin-link { width: 100%; margin-top: 10px; min-height: 48px; }
.v-auth-aside { margin: 18px 0 0; font-size: var(--t-foot); color: var(--ink-3); line-height: 1.55; }
.v-auth-foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--sep); font-size: var(--t-sub); color: var(--ink-2); }
.v-auth-form .v-notice:not(:empty) { padding: 10px 12px; border-radius: 12px; background: var(--red-tint); color: var(--red-ink); }
.v-link-notice:not(:empty) { background: var(--tint-2) !important; color: var(--link-strong) !important; }

.v-auth-show {
  position: relative;
  display: flex;
  padding: 44px;
  border-radius: var(--r-panel);
  background: radial-gradient(120% 100% at 100% 0%, var(--g-500) 0%, var(--g-700) 38%, var(--g-900) 78%, var(--g-950) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.v-auth-show::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  opacity: 0.11;
  -webkit-mask: var(--v-hub) right -280px bottom -420px / 980px 980px no-repeat;
  mask: var(--v-hub) right -280px bottom -420px / 980px 980px no-repeat;
}
.v-auth-show-in { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; width: 100%; }
.v-auth-lede { margin: 0; max-width: 16ch; font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.v-auth-note { margin: 16px 0 0; max-width: 40ch; font-size: var(--t-lead); color: rgba(255, 255, 255, 0.8); line-height: 1.5; }
.v-auth-does { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.v-auth-does li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: var(--t-body);
  font-weight: 600;
}
.v-auth-does li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--g-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306241a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ── Claiming a place ─────────────────────────────────────────────────── */

.v-wrap > .v-label { margin: 18px 4px 12px; }
.v-wrap .v-object { padding: 28px; animation: v-rise 0.6s var(--spring) both; }
.v-wrap .v-object + .v-object { margin-top: var(--gap); }
.v-wrap .v-obj-name { font-size: var(--t-title2); margin-top: 18px; }

.v-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.v-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--inset);
  color: var(--ink-3);
  font-size: var(--t-foot);
  font-weight: 600;
}
.v-step-n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-3);
  font-size: var(--t-cap);
  font-weight: 800;
}
.v-step.is-on { background: var(--tint-2); color: var(--link-strong); }
.v-step.is-on .v-step-n { background: var(--accent); color: #fff; }
.v-step.is-done { color: var(--ink-2); }
.v-step.is-done .v-step-n { background: var(--g-300); color: var(--g-900); }

.v-claim-find { margin-top: 20px; }
.v-claim-results { margin-top: 10px; }
.v-claim-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.v-claim-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--inset);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s var(--spring);
}
.v-claim-row:hover { background: var(--tint); }
.v-claim-row:active { transform: scale(0.99); }
.v-claim-name { font-size: var(--t-body); font-weight: 700; }
.v-claim-sub { font-size: var(--t-foot); color: var(--ink-3); }
.v-claim-skel { height: 58px; background: linear-gradient(90deg, var(--skel-a) 0%, var(--skel-b) 45%, var(--skel-a) 90%) 0 0 / 200% 100%; animation: v-shimmer 1.4s linear infinite; }
.v-claim-more { margin-top: 8px; }
.v-claim-empty { margin-top: 8px; }
.v-claim-picked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--tint-line);
}
.v-claim-picked > div, .v-claim-picked > span { display: flex; flex-direction: column; }
.v-claim-form { margin-top: 6px; }
.v-claim-hint { margin: 0 0 10px; font-size: var(--t-foot); color: var(--ink-3); }
.v-claim-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1.5px dashed var(--sep-2);
  border-radius: 18px;
  background: var(--inset);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.v-claim-drop:hover { border-color: var(--g-500); background: var(--tint); }
.v-claim-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.v-claim-drop-text { font-weight: 700; color: var(--link); }
.v-claim-count { font-size: var(--t-foot); color: var(--ink-3); }
.v-claim-proofs { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.v-claim-proofs li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--inset); font-size: var(--t-foot); }
.v-claim-proof-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-claim-proof-state { color: var(--ink-3); }
.v-claim-optional { font-style: normal; font-weight: 500; color: var(--ink-3); }
.v-claim-send { width: 100%; margin-top: 18px; min-height: 50px; }

@media (max-width: 900px) {
  .v-auth { grid-template-columns: minmax(0, 1fr); }
  .v-auth-show { order: -1; padding: 28px; }
  .v-auth-show-in { gap: 22px; }
  .v-auth-does { display: none; }
  .v-auth-form { padding: 32px 20px; }
}
