/* =========================
   Auth Section (Sign up / Login)
   ========================= */

a {
  text-decoration: none;
  color: rgba(255, 122, 24, 0.75);
}

.auth {
  width: min(var(--container), calc(100% - 32px));
  margin: 28px auto 70px;
}

.auth__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* Left */
.auth__info {
  border-radius: var(--r2);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(
      900px 450px at 20% 20%,
      rgba(15, 95, 67, 0.45),
      transparent 60%
    ),
    radial-gradient(
      700px 350px at 90% 10%,
      rgba(255, 122, 24, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(14, 30, 23, 0.72), rgba(11, 20, 16, 0.55));
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.auth__info::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 180deg,
    transparent,
    rgba(255, 122, 24, 0.22),
    transparent,
    rgba(15, 95, 67, 0.22),
    transparent
  );
  filter: blur(22px);
  opacity: 0.35;
  animation: authGlow 10s linear infinite;
}

@keyframes authGlow {
  to {
    transform: rotate(360deg);
  }
}

.auth__info > * {
  position: relative;
  z-index: 1;
}

.auth__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(246, 247, 247, 0.92);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.25px;
}

.auth__badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 122, 24, 0.12);
}

.auth__title {
  margin-top: 16px;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0.2px;
}

.auth__subtitle {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  max-width: 56ch;
}

.auth__benefits {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.auth__benefit {
  color: rgba(246, 247, 247, 0.9);
  font-weight: 650;
  font-size: 14px;
}

.auth__stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.auth__stat {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 16px;
  padding: 12px;
}

.auth__statNum {
  display: block;
  font-weight: 950;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.auth__statText {
  display: block;
  margin-top: 4px;
  color: rgba(182, 195, 190, 0.9);
  font-size: 12px;
  font-weight: 700;
}

/* Right card */
.auth__card {
  border-radius: var(--r2);
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(14, 30, 23, 0.62),
    rgba(11, 20, 16, 0.55)
  );
  box-shadow: var(--shadow-soft);
  padding: 16px;
  overflow: hidden;
}

/* Tabs */
.auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.auth__tab {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 247, 247, 0.88);
  padding: 12px 10px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.auth__tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 24, 0.35);
}

.auth__tab--active {
  border-color: rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.1);
  color: var(--text);
}

/* Forms */
.auth__form {
  display: none;
  margin-top: 14px;
  animation: authIn 0.45s ease both;
}

.auth__form--active {
  display: block;
}

@keyframes authIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth__field {
  display: grid;
  gap: 8px;
}

.auth__field--full {
  grid-column: 1 / -1;
}

.auth__label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: rgba(182, 195, 190, 0.95);
}

.auth__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.auth__input::placeholder {
  color: rgba(182, 195, 190, 0.75);
}

.auth__input:focus {
  border-color: rgba(255, 122, 24, 0.45);
  box-shadow: 0 0 0 6px rgba(255, 122, 24, 0.1);
  transform: translateY(-1px);
}

.auth__select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.75) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.75) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 55%,
    calc(100% - 12px) 55%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

/* Check */
.auth__check {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  user-select: none;
}

.auth__check--row {
  margin-top: 0;
  align-items: center;
}

.auth__checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.auth__checkText {
  color: rgba(182, 195, 190, 0.95);
  font-size: 13px;
  line-height: 1.5;
}

.auth__inlineLink {
  color: rgba(246, 247, 247, 0.92);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 122, 24, 0.45);
  text-underline-offset: 3px;
}

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

/* Buttons */
.auth__primary {
  margin-top: 14px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 24, 0.35);
  background: linear-gradient(
    135deg,
    rgba(255, 122, 24, 0.95),
    rgba(255, 122, 24, 0.75)
  );
  color: #1a0f07;
  font-weight: 950;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
  box-shadow: 0 16px 40px rgba(255, 122, 24, 0.18);
}

.auth__primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 55px rgba(255, 122, 24, 0.24);
}

.auth__primary:active {
  transform: translateY(0) scale(0.98);
}

.auth__divider {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(182, 195, 190, 0.9);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
}

.auth__divider span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.auth__ghost {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 247, 247, 0.92);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.auth__ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.08);
  color: var(--orange);
}

.auth__row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Hint bottom */
.auth__hint {
  margin-top: 12px;
  color: rgba(182, 195, 190, 0.9);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.auth__linkBtn {
  border: none;
  background: none;
  color: var(--orange);
  font-weight: 950;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive */
@media (max-width: 980px) {
  .auth__container {
    grid-template-columns: 1fr;
  }
  .auth__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .auth__grid {
    grid-template-columns: 1fr;
  }
  .auth__stats {
    grid-template-columns: 1fr;
  }
}
