/* ====================================================================== auth */

.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr);
  background: var(--bg);
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 38px clamp(34px, 5vw, 72px) 30px;
  overflow: hidden;
  background:
    radial-gradient(900px 540px at 6% -4%, rgba(2, 72, 252, .20) 0%, transparent 62%),
    radial-gradient(760px 520px at 104% 96%, rgba(1, 216, 252, .15) 0%, transparent 58%),
    radial-gradient(620px 500px at 78% 18%, rgba(104, 19, 253, .18) 0%, transparent 60%),
    #0b0b0f;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(90% 80% at 42% 42%, #000 0%, transparent 78%);
  pointer-events: none;
}

.auth-brand { position: relative; z-index: 2; }

.auth-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-top: clamp(48px, 9vh, 110px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 12px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-soft);
}

.auth-copy h1 {
  font-size: clamp(42px, 5.2vw, 74px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
}

.auth-copy h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-lede {
  max-width: 460px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -.01em;
}

.auth-stage {
  position: relative;
  z-index: 2;
  width: min(540px, 78%);
  height: 280px;
  margin-top: auto;
  margin-left: clamp(0px, 9vw, 150px);
  margin-bottom: 10px;
}

.stage-card {
  position: absolute;
  width: 190px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  background: rgba(24, 24, 30, .58);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
  animation: stage-float 7s var(--ease) infinite;
}

.stage-card--a {
  left: 0;
  top: 44px;
  transform: rotate(-7deg);
  animation-delay: -.6s;
}

.stage-card--b {
  left: 176px;
  top: 2px;
  z-index: 2;
  transform: rotate(3.5deg);
  animation-delay: -2.8s;
}

.stage-card--c {
  left: 330px;
  top: 88px;
  transform: rotate(8deg);
  animation-delay: -4.4s;
}

@keyframes stage-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.stage-art {
  position: relative;
  height: 148px;
  overflow: hidden;
  border-radius: 15px;
}

.stage-art::before,
.stage-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.stage-art::before {
  width: 130px;
  height: 130px;
  left: -26px;
  top: -34px;
  background: rgba(255, 255, 255, .42);
}

.stage-art::after {
  width: 100px;
  height: 100px;
  right: -22px;
  bottom: -30px;
  background: rgba(255, 255, 255, .22);
}

.stage-card--a .stage-art {
  background:
    linear-gradient(180deg, transparent 45%, rgba(3, 6, 18, .58)),
    radial-gradient(80px 80px at 74% 25%, #54e8ff, transparent 60%),
    radial-gradient(100px 120px at 24% 76%, #f13b88, transparent 62%),
    linear-gradient(150deg, #0b132b, #173a5e 52%, #0b132b);
}

.stage-card--b .stage-art {
  background:
    linear-gradient(180deg, transparent 45%, rgba(40, 20, 0, .55)),
    radial-gradient(90px 90px at 28% 22%, #ffe39a, transparent 65%),
    linear-gradient(160deg, #ffbe5c, #f08b3c 48%, #7a3a16);
}

.stage-card--c .stage-art {
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 20, 12, .52)),
    radial-gradient(80px 90px at 68% 22%, #b8ffd9, transparent 62%),
    linear-gradient(155deg, #0c3d2c, #1d8a63 55%, #072e21);
}

.stage-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -15px 0 0 -21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
  backdrop-filter: blur(6px);
}

.stage-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.stage-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 5px 3px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 500;
}

.stage-caption span:last-child {
  color: var(--ink-3);
}

.auth-foot {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: .01em;
}

.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 34px;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.auth-panel-top {
  position: absolute;
  top: 26px;
  left: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}

.auth-back:hover { color: var(--ink); }
.auth-back svg { width: 15px; height: 15px; }

.auth-card {
  width: min(400px, 100%);
}

.auth-card-head { margin-bottom: 28px; }

.auth-card-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--surface-2);
}

.auth-card-mark img { display: block; width: 24px; height: 24px; }

.auth-card-head h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.auth-card-head p {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 14px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  font-size: 14.5px;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}

.field input::placeholder { color: #6f6f7a; }

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, .18);
}

.field input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, .10);
}

.password-wrap { position: relative; }

.password-wrap input { padding-right: 50px; }

.field-btn {
  position: absolute;
  right: 7px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  transform: translateY(-50%);
  transition: background .15s, color .15s;
}

.field-btn:hover { background: var(--surface-2); color: var(--ink); }
.field-btn svg { width: 19px; height: 19px; }

.auth-error {
  margin: 2px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(179, 38, 30, .18);
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.45;
}

/* Sits under the password field, inside .field's 16px gap. */
.auth-forgot {
  margin: -8px 0 14px;
  text-align: right;
  font-size: 12.5px;
}

.auth-submit { width: 100%; height: 54px; margin-top: 4px; }
.auth-submit-arrow { width: 18px; height: 18px; }

.auth-submit .btn-spinner { display: none; }
.auth-submit.is-loading .auth-submit-arrow { display: none; }
.auth-submit.is-loading .btn-spinner { display: block; }
.auth-submit.is-loading { pointer-events: none; opacity: .75; }

.auth-switch {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 13px;
  text-align: center;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: inherit;
  font-weight: 600;
}

.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------- verification step */

.verify-lede {
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

#verify-code,
#reset-code {
  text-align: center;
  letter-spacing: .45em;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.verify-resend {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: center;
}

#verify-countdown { color: var(--ink-3); }

.verify-back {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
}

.auth-legal {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}


/* Auth page responsive */
@media (max-width: 1180px) {
  .auth-stage { margin-left: 20px; width: 500px; }
  .stage-card--c { left: 290px; }
}

@media (max-width: 1020px) {
  .auth { grid-template-columns: 1fr 1fr; }
  .auth-stage { display: none; }
  .auth-copy { margin-top: clamp(60px, 16vh, 160px); }
  .auth-visual { padding-bottom: 48px; }
  .auth-foot { margin-top: auto; }
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { min-height: auto; padding: 26px 24px 30px; }
  .auth-copy { margin-top: 34px; }
  .auth-copy h1 { font-size: clamp(38px, 9vw, 52px); }
  .auth-lede { font-size: 14.5px; margin-top: 16px; }
  .auth-foot { display: none; }
  .auth-panel { padding: 30px 24px 50px; border-left: 0; border-top: 1px solid var(--line); }
  .auth-card { width: min(440px, 100%); margin: 0 auto; }
  .auth-card-mark { display: none; }
}

@media (max-width: 560px) {
  .auth-panel { padding: 26px 18px 44px; }
}
