/* ============================================================
   TRXSEND — auth (login / register)
   Requires brand.css. The form is literally one of the landing's
   white cards, dropped onto the black glow field.
   ============================================================ */

.auth-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

.auth-body .glow-field {
  position: fixed;
  z-index: -1;
}

/* Slide-driven hues, all inside the warm brand range. */
.auth-body .glow-a {
  background: var(--g1, var(--amber));
}

.auth-body .glow-b {
  background: var(--g2, var(--red-deep));
}

.auth-body .glow-field::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- top bar ---------- */
.auth-topbar {
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-back {
  font-family: var(--font);
  font-size: var(--t-fine);
  font-weight: 300;
  color: var(--ink-70);
  text-decoration: none;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--dur) var(--ease);
}

.auth-back:hover {
  color: var(--white);
}

/* ---------- layout ---------- */
.auth-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 460px);
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}

/* ---------- editorial column ---------- */
.auth-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.auth-slider {
  position: relative;
}

.auth-slides {
  display: grid;
}

/* Slides stack in one grid cell so the column never jumps height
   between captions of different lengths. */
.auth-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.auth-slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.slide-index {
  font-family: var(--font);
  font-size: var(--t-fine);
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.auth-slide h2 {
  font-family: var(--font);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  color: var(--white);
  max-width: 14ch;
}

.auth-slide p {
  font-family: var(--font);
  font-size: var(--t-lead);
  font-weight: 300;
  color: var(--ink-70);
  line-height: 1.6;
  max-width: 40ch;
}

.auth-dots {
  display: flex;
  gap: 8px;
}

.auth-dot {
  width: 28px;
  height: 3px;
  border: none;
  padding: 0;
  border-radius: var(--r-pill);
  background: var(--hair);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.auth-dot:hover {
  background: var(--ink-50);
}

.auth-dot.active {
  background: var(--orange);
  width: 44px;
}

/* ---------- the card ---------- */
.auth-right {
  display: flex;
  justify-content: flex-end;
}

.auth-card {
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: 44px 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.auth-card.hidden {
  display: none;
}

.auth-title {
  font-family: var(--font);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  line-height: 1.1;
}

.auth-subtitle {
  font-family: var(--font);
  font-size: var(--t-fine);
  font-weight: 300;
  color: var(--on-white-70);
  margin-bottom: 26px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.form-group input {
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 300;
  color: var(--black);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--on-white-hair);
  border-radius: var(--r-md);
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.form-group input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.form-group input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.28);
}

.password-input {
  position: relative;
  display: flex;
}

.password-input input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.toggle-password:hover {
  color: var(--black);
  background: rgba(0, 0, 0, 0.05);
}

.form-error {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  color: #d81f11;
  line-height: 1.5;
  min-height: 0;
}

.form-error:not(:empty) {
  background: rgba(216, 31, 17, 0.08);
  border-radius: var(--r-sm);
  padding: 10px 14px;
}

.auth-submit {
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: var(--r-md);
  padding: 15px 24px;
  cursor: pointer;
  text-transform: lowercase;
  transition: all var(--dur-fast) var(--ease);
  margin-top: 6px;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--on-white-hair);
  font-family: var(--font);
  font-size: var(--t-fine);
  font-weight: 300;
  color: var(--on-white-70);
}

.auth-switch {
  font-family: var(--font);
  font-size: var(--t-fine);
  font-weight: 500;
  color: var(--black);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease);
}

.auth-switch:hover {
  color: var(--orange);
}

.auth-legal {
  text-align: center;
  padding: 0 var(--gutter) 32px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-50);
}

.auth-legal a {
  color: var(--ink-70);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-legal a:hover {
  color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 520px;
    padding-top: 16px;
  }

  .auth-left {
    gap: 24px;
  }

  .auth-slide h2 {
    max-width: 100%;
  }

  .auth-right {
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .auth-topbar {
    padding: 20px var(--gutter);
  }

  .auth-card {
    padding: 32px 24px;
    border-radius: var(--r-xl);
  }
}
