/* Sign up, sign in and account pages — builds on styles.css (colors, buttons, wave background) */

:root {
  --discord: #5865f2;
  --ok: #16a34a;
  --danger: #be123c;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.auth-top {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-top .btn-ghost { display: inline-flex; }

.auth {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

/* ---------- Stepper ---------- */
.stepper {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 24px;
  padding: 6px;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-soft);
}
.stepper .dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: rgba(11, 31, 75, 0.08);
}
/* check drawn as the circle's own background so it stays centered */
.stepper li.done .dot {
  font-size: 0;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11.65l3.3 3.3L17 8.25'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.stepper li.active { background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgba(20, 70, 150, 0.14); }
.stepper li.active .dot { background: var(--navy); color: #fff; }

/* ---------- Screens ---------- */
.screen { display: none; }
.screen.active { display: block; animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.glass {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(20, 70, 150, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card {
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 40px 32px;
  border-radius: 32px;
}
.card h1 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.sub { color: var(--navy-soft); line-height: 1.55; margin-bottom: 22px; }
.alt { margin-top: 18px; font-size: 14px; color: var(--navy-soft); text-align: center; }
.alt a, .check a, .link-btn { color: var(--accent); font-weight: 600; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.wide { width: 100%; margin-top: 8px; }
.center { text-align: center; }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; }
.field-head .link-btn { font-size: 13px; }
.field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(11, 31, 75, 0.14);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-weight: 500;
  color: var(--navy);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 111, 224, 0.15); }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 10px;
  background: transparent; color: var(--navy-soft); cursor: pointer;
  display: grid; place-items: center;
}
.eye svg { width: 18px; height: 18px; }
.eye.on { color: var(--accent); }
.meter { height: 5px; border-radius: 99px; background: rgba(11, 31, 75, 0.08); overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, var(--accent)); transition: width .25s ease, background .25s ease; }
.meter i.weak { background: #f59e0b; }
.hint { font-weight: 500; color: var(--navy-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--navy-soft); line-height: 1.45; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }

.or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 10px;
  font-size: 13px; font-weight: 600; color: var(--navy-soft);
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(11, 31, 75, 0.12); }

/* ---------- Messages ---------- */
.notice {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.notice.error { background: rgba(225, 29, 72, 0.1); color: var(--danger); }
.notice.ok { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.notice[hidden] { display: none; }
.setup-warning { max-width: 460px; margin: 0 auto 18px; text-align: center; }

/* ---------- Buttons ---------- */
button.btn { border: 0; cursor: pointer; font-family: inherit; position: relative; gap: 10px; }
button.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
button.btn.loading:disabled { opacity: .85; cursor: progress; }
.btn-discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.35);
}
.btn-discord svg { width: 22px; height: 22px; }
.btn-discord:hover { box-shadow: 0 14px 30px rgba(88, 101, 242, 0.45); }
.spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Discord step ---------- */
.link-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 26px;
}
.bubble {
  width: 68px; height: 68px;
  border-radius: 22px;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(20, 70, 150, 0.2);
}
.bubble.ascent { background: #fff; }
.bubble.ascent img { width: 40px; }
.bubble.discord { background: var(--discord); }
.bubble.discord svg { width: 36px; }
.bubble.mail { background: linear-gradient(135deg, var(--sky-top), #5aa6f2); color: #fff; }
.bubble.mail svg { width: 32px; }
.wire { display: flex; gap: 6px; }
.wire i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: hop 1.2s ease-in-out infinite;
}
.wire i:nth-child(2) { animation-delay: .15s; }
.wire i:nth-child(3) { animation-delay: .3s; }
@keyframes hop {
  0%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

.scopes { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; font-size: 15px; }
.scopes li { display: flex; gap: 10px; align-items: center; }
.scopes .tick {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 12px; font-weight: 800;
  background: rgba(22, 163, 74, 0.14); color: var(--ok);
}
.scopes .no { color: var(--navy-soft); }
.scopes .no .tick { background: rgba(11, 31, 75, 0.08); color: var(--navy-soft); }

/* ---------- Signed-in summary ---------- */
.done-badge {
  width: 64px; height: 64px;
  margin: 0 auto 6px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.35);
}
.done-badge svg { width: 30px; height: 30px; }

.facts { list-style: none; display: grid; gap: 2px; margin-bottom: 20px; }
.facts li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}
.facts li:first-child { border-radius: 16px 16px 6px 6px; }
.facts li:last-child { border-radius: 6px 6px 16px 16px; }
.facts span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-soft); }
.facts b { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.facts .mono { font-family: var(--mono); letter-spacing: .04em; }
.discord-who { display: inline-flex; align-items: center; gap: 8px; }
.discord-who img { width: 24px; height: 24px; border-radius: 50%; }

@media (max-width: 520px) {
  .card { padding: 30px 22px 26px; border-radius: 26px; }
  .stepper li:not(.active) .lbl { display: none; }
  .stepper li:not(.active) { padding: 7px; }
}

/* ---------- Account page ---------- */
.acct-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.acct-title h1 { margin-top: 6px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.verified-pill {
  flex: none; white-space: nowrap;
  font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(31, 111, 224, 0.12); color: var(--accent);
}
.card-wrap .notice, .acct-grid .notice { margin-top: 16px; }

.acct { max-width: 1120px; margin: 0 auto; }
.acct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}
.acct-grid .alt { margin-top: 14px; }

/* Side panels (same look as mockups/account.html) */
.side { display: grid; gap: 18px; }
.panel { padding: 24px; border-radius: 26px; }
.panel h2 { font-size: 22px; letter-spacing: -0.02em; margin: 14px 0 8px; }
.panel h3 { font-size: 16px; letter-spacing: -0.01em; }
.panel p { color: var(--navy-soft); line-height: 1.55; font-size: 15px; }
.send-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--sky-top), #5aa6f2);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 111, 224, 0.35);
}
.send-icon svg { width: 24px; height: 24px; }
.send-panel .btn { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.coming-soon {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(11, 31, 75, 0.16);
  background: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.coming-soon p { font-size: 14px; }
.soon-pill {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(31, 111, 224, 0.12); color: var(--accent);
}

@media (max-width: 980px) {
  .acct-grid { grid-template-columns: 1fr; }
  .acct-grid > div:first-child { max-width: 620px; width: 100%; margin: 0 auto; }
}

/* ---------- Loading / stuck ---------- */
.loader {
  width: 34px; height: 34px;
  margin: 6px auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(31, 111, 224, 0.18);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.error-detail {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--navy-soft);
  overflow-wrap: anywhere;
}

/* small note under a page's intro (My account → Get verified) */
.sub.small { margin-top: -12px; font-size: 14px; }
/* My account → Get verified → Check your email: space between the code boxes and the buttons */
[data-screen="gvsent"] .code-boxes { margin: 4px 0 18px; }
[data-screen="gvsent"] .gv-verify { margin-bottom: 10px; }
