/* Log in / sign up. RoMarket's own rules, written for these pages.
   Split screen: the pitch on the left, the form card on the right; one
   column on a phone with the card first. Colours come from the --color-*
   variables, so the dark theme carries over without extra rules. */

.au {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--color-ground);
  color: var(--color-ink);
}
.au::before,
.au::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}
.au::before {
  top: -12rem;
  right: -10rem;
  width: 34rem;
  height: 34rem;
  background: color-mix(in srgb, #f0177c 14%, transparent);
}
.au::after {
  bottom: -14rem;
  left: -12rem;
  width: 36rem;
  height: 36rem;
  background: color-mix(in srgb, #ff9a1f 13%, transparent);
}

.au__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}
.au__switch {
  border: 1px solid var(--color-line);
  border-radius: 9999px;
  background: var(--color-surface);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.au__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}
@media (min-width: 900px) {
  .au__grid {
    grid-template-columns: minmax(0, 1fr) 26rem;
    align-items: center;
    gap: 4rem;
    padding-top: 3rem;
  }
}
.au__pitch {
  order: 2;
}
@media (min-width: 900px) {
  .au__pitch {
    order: 0;
  }
}

.au__h {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.au__grad {
  color: transparent;
  background-image: linear-gradient(90deg, #f0177c, #ff9a1f);
  -webkit-background-clip: text;
  background-clip: text;
}
.au__sub {
  margin-top: 1.25rem;
  max-width: 26rem;
  color: var(--color-ink-2);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.au__board {
  margin-top: 2rem;
  max-width: 24rem;
}
.au__board-head {
  display: inline-block;
  border-radius: 9999px;
  background: var(--color-surface);
  box-shadow: 0 6px 20px -10px rgba(20, 18, 26, 0.25);
  padding: 0.4rem 0.9rem;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.au__board ol {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.au__earner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  background: var(--color-surface);
  padding: 0.6rem 0.85rem;
}
.au__rank {
  width: 1.25rem;
  color: var(--color-muted);
  font-weight: 900;
  text-align: center;
}
.au__who {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.au__amt {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}
.au__amt small {
  margin-left: 0.2rem;
  color: var(--color-muted);
  font-weight: 700;
}

.au__card {
  border: 1px solid var(--color-line);
  border-radius: 1.75rem;
  background: var(--color-surface);
  box-shadow: 0 30px 60px -30px rgba(20, 18, 26, 0.35);
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .au__card {
    padding: 1.75rem;
  }
}
.au__t {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.au__oauth {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.au__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 3rem;
  border-radius: 9999px;
  font-weight: 800;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.au__btn:active {
  transform: scale(0.98);
}
.au__btn:disabled {
  opacity: 0.6;
}
.au__btn--discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(88, 101, 242, 0.8);
}
.au__btn--discord:hover {
  filter: brightness(1.06);
}
.au__btn--google {
  border: 1px solid var(--color-line-2);
  background: var(--color-surface);
  color: var(--color-ink);
}
.au__btn--google:hover {
  background: var(--color-sunken);
}

.au__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0.4rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.au__or::before,
.au__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-line);
}

.au__field {
  display: block;
  margin-top: 0.85rem;
}
.au__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
}
.au__hint {
  color: var(--color-muted);
  font-weight: 600;
}
.au__input {
  width: 100%;
  height: 3rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  background: var(--color-sunken);
  padding: 0 1rem;
  color: var(--color-ink);
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.au__input::placeholder {
  color: var(--color-muted);
  font-weight: 500;
}
.au__input:focus {
  border-color: var(--color-accent);
  background: var(--color-surface);
}
.au__pw {
  position: relative;
  display: block;
}
.au__pw .au__input {
  padding-right: 4.5rem;
}
.au__peek {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  border-radius: 0.6rem;
  background: var(--color-surface);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.au__go {
  display: flex;
  width: 100%;
  height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  border-radius: 9999px;
  background-image: linear-gradient(90deg, #f0177c, #ff9a1f);
  box-shadow: 0 14px 28px -14px rgba(240, 23, 124, 0.75);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  transition: transform 0.15s ease;
}
.au__go:active {
  transform: scale(0.98);
}
.au__go:disabled {
  opacity: 0.6;
}

.au__err {
  margin-top: 1rem;
  border-radius: 0.9rem;
  background: var(--color-risk-soft);
  padding: 0.7rem 0.9rem;
  color: var(--color-risk);
  font-size: 0.875rem;
  font-weight: 700;
}
.au__foot {
  margin-top: 1.1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.au__foot a,
.au__foot button {
  color: var(--color-accent);
  font-weight: 800;
}

/* sign up: the three ways in */
.au__step {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 800;
}
.au__step b {
  color: var(--color-accent);
}
.au__ways {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 26rem;
}
.au__way {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 1.25rem;
  background: var(--color-surface);
  padding: 1rem 1.1rem;
  color: var(--color-ink);
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.au__way:hover {
  border-color: var(--color-line-2);
  transform: translateY(-1px);
}
.au__way:disabled {
  opacity: 0.6;
}
.au__way--discord {
  border-color: transparent;
  background: #5865f2;
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(88, 101, 242, 0.9);
}
.au__way-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  background: var(--color-sunken);
}
.au__way--discord .au__way-icon {
  background: rgba(255, 255, 255, 0.18);
}
.au__way-text {
  flex: 1;
  min-width: 0;
}
.au__way-text b {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
}
.au__way-text span {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.au__way--discord .au__way-text span {
  color: rgba(255, 255, 255, 0.8);
}
.au__legal {
  margin-top: 2rem;
  max-width: 30rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}
.au__legal a {
  color: var(--color-ink);
  font-weight: 800;
}

/* sign up: join card on the left, what you get on the right */
.au__join {
  max-width: 30rem;
}
.au__lead {
  margin-top: 0.35rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.au__join .au__ways {
  margin-top: 1.25rem;
  max-width: none;
}
.au__join .au__legal {
  margin-top: 1.25rem;
}
@media (min-width: 900px) {
  .au__grid:has(.au__join) {
    grid-template-columns: 28rem minmax(0, 1fr);
  }
  .au__pitch--signup {
    order: 0;
  }
}
.au__h--sm {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
}
.au__perks {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
  max-width: 30rem;
}
.au__perk {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  background: var(--color-surface);
  padding: 0.85rem 1rem;
}
.au__perk-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: 0.8rem;
  background: var(--color-sunken);
  font-size: 1.2rem;
}
.au__perk b {
  display: block;
  font-weight: 900;
}
.au__perk span span {
  display: block;
  margin-top: 0.1rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 600;
}
