/* Shared account-flow UI: sign in, sign up, verification and password recovery. */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 5%, rgba(99,91,255,.12), transparent 28%),
    radial-gradient(circle at 90% 92%, rgba(49,130,206,.10), transparent 30%),
    #f7f8fc;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, .92fr) 1.08fr;
}

.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(26px, 4.4vw, 72px) 38px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(18px);
}

.auth-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(30,41,59,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  color: #4d586a;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.auth-back:hover {
  transform: translateX(-2px);
  border-color: rgba(99,91,255,.28);
  background: #fff;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #141b2b;
  font-weight: 850;
  text-decoration: none;
}

.auth-brand .brand-mark { flex: 0 0 auto; }

.auth-card {
  width: min(455px, 100%);
  margin: auto;
  padding: 46px 0 30px;
}

.auth-eyebrow {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(36px, 4.4vw, 50px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.auth-card > p,
.auth-lead {
  margin: 14px 0 30px;
  color: #758094;
  font-size: 15px;
  line-height: 1.68;
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 760;
}

.auth-input-wrap { position: relative; }

.auth-input {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  border: 1px solid #dde2eb;
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: #172033;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-input:focus {
  border-color: rgba(99,91,255,.72);
  box-shadow: 0 0 0 4px rgba(99,91,255,.09);
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
}

.auth-text-link {
  color: var(--brand);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.auth-text-link:hover { text-decoration: underline; }

.auth-primary {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
}

.auth-message {
  min-height: 21px;
  margin-top: -2px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.auth-message.success { color: var(--success); }

.auth-switch {
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid #eef0f4;
  color: #7a8495;
  text-align: center;
  font-size: 14px;
}

.auth-switch a {
  color: var(--brand);
  font-weight: 780;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-feature-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 5px;
  padding: 0;
  list-style: none;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667085;
  font-size: 13px;
}

.auth-feature-list .tick {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eaf8f2;
  color: #139467;
  font-size: 11px;
  font-weight: 900;
}

.auth-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 100vh;
  padding: 60px;
  color: #fff;
  background:
    radial-gradient(circle at 73% 22%, rgba(147,118,255,.86), transparent 30%),
    radial-gradient(circle at 19% 82%, rgba(52,129,224,.86), transparent 34%),
    #171833;
}

.auth-art::before,
.auth-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
}

.auth-art::before {
  width: 620px;
  height: 620px;
  right: -230px;
  top: -250px;
}

.auth-art::after {
  width: 470px;
  height: 470px;
  left: -180px;
  bottom: -200px;
}

.auth-art-copy {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
}

.auth-art-copy h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(44px, 5.3vw, 76px);
  line-height: .98;
  letter-spacing: -.065em;
}

.auth-art-copy p {
  max-width: 500px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 17px;
  line-height: 1.7;
}

/* Verification */
.verify-box {
  margin-top: 25px;
  padding: 20px;
  border: 1px solid #e7e9f0;
  border-radius: 19px;
  background: #fafbfe;
}

.verify-box-label {
  margin-bottom: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.verify-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.verify-email-row .auth-input { height: 48px; }
.verify-email-row .btn { min-height: 48px; white-space: nowrap; }

.verify-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.verify-actions .btn { width: 100%; }

.verify-note {
  min-height: 21px;
  margin-top: 12px;
  color: #7a8495;
  font-size: 13px;
  line-height: 1.5;
}

.verify-note.error { color: var(--danger); }
.verify-note.success { color: var(--success); }

.verify-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 21px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 27px;
  font-weight: 850;
}

.verify-help {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #eceef3;
  color: #8a93a3;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-side { min-height: 100vh; }
  .auth-card { padding-top: 54px; }
}

@media (max-width: 520px) {
  .auth-side { padding: 18px 20px 30px; }
  .auth-side-top { align-items: flex-start; }
  .auth-card { padding-top: 44px; }
  .verify-email-row { grid-template-columns: 1fr; }
  .verify-actions { grid-template-columns: 1fr; }
  .auth-back { min-height: 38px; padding: 0 11px; }
  .auth-brand { font-size: 14px; }
}

.setup-back {
  width: max-content;
  margin-bottom: 22px;
}
