.auth-body {
  margin: 0;
  min-height: 100vh;
  background: #070910;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(95, 86, 255, 0.2), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 122, 24, 0.12), transparent 28%),
    #070910;
  padding: 0;
}

.auth-home-btn {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 20;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(9, 12, 20, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.auth-home-btn iconify-icon {
  font-size: 22px;
}

.auth-home-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.auth-bg-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(48, 50, 140, 0.26), transparent 48%),
    linear-gradient(315deg, rgba(255, 122, 24, 0.08), transparent 36%);
  z-index: 0;
  pointer-events: none;
}

.auth-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.38;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  z-index: 1;
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.98fr);
  background: rgba(9, 12, 20, 0.92);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  box-shadow: none;
}

.auth-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 72px;
  background:
    radial-gradient(circle at 24% 18%, rgba(111, 93, 255, 0.28), transparent 22%),
    linear-gradient(180deg, rgba(31, 35, 114, 1), rgba(28, 31, 102, 1));
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%),
    radial-gradient(circle at bottom left, rgba(255, 122, 24, 0.12), transparent 24%);
  pointer-events: none;
}

.auth-showcase__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-showcase__brand {
  display: inline-flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 44px;
}

.auth-showcase__logo {
  width: min(360px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.22));
}

.auth-showcase__title {
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 620px;
}

.auth-showcase__copy {
  margin: 0;
  max-width: 480px;
  color: rgba(232, 237, 255, 0.76);
  font-size: 18px;
  line-height: 1.7;
}

.auth-showcase__stats {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.auth-showcase__stat {
  min-width: 170px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-showcase__stat strong {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.auth-showcase__stat span {
  display: block;
  margin-top: 6px;
  color: rgba(232, 237, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.auth-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(13, 15, 23, 0.96), rgba(10, 12, 19, 0.98));
  min-height: 100vh;
  padding: 72px 64px;
  position: relative;
  z-index: 1;
}

.auth-card--split {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  text-align: left;
  margin-bottom: 40px;
}

.auth-logo {
  width: auto;
  max-width: 84px;
  height: 66px;
  display: block;
  object-fit: contain;
  margin-bottom: 22px;
  border-radius: 0;
  box-shadow: none;
}

.auth-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: rgba(190, 198, 221, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

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

.form-group {
  display: grid;
  gap: 10px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #8e95b0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 4px;
}

.form-input-wrapper {
  position: relative;
}

.phone-field {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 12px;
}

.phone-code-wrapper,
.phone-number-wrapper {
  min-width: 0;
}

.phone-code-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 20px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
}

.form-input:focus,
.phone-dropdown-trigger:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(158, 37, 255, 0.15);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.phone-dropdown {
  position: relative;
}

.phone-dropdown-trigger {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  font: inherit;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.phone-dropdown-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.phone-flag-icon {
  width: 22px;
  display: inline-block;
  flex: 0 0 22px;
  font-size: 18px;
  line-height: 1;
}

.phone-code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.phone-dropdown-caret {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: transform 0.25s ease;
}

.phone-dropdown.is-open .phone-dropdown-caret {
  transform: rotate(180deg);
}

.phone-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 156px;
  display: grid;
  gap: 4px;
  padding: 6px;
  background: rgba(14, 16, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  transform-origin: top left;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

.phone-dropdown.is-open .phone-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.phone-dropdown-option {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.phone-dropdown-option:hover,
.phone-dropdown-option.is-selected {
  background: rgba(255, 255, 255, 0.09);
}

.phone-dropdown-option.is-selected .phone-option-code {
  color: #fff;
}

.phone-option-code {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-btn {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #4942d6 0%, #2d2a8f 100%);
  color: #fff;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #5b55e5 0%, #3632aa 100%);
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--accent-purple);
}

/* Micro-interactions */
.auth-card::before {
  display: none;
}

@media (max-width: 520px) {
  .auth-page {
    min-height: 100svh;
  }

  .auth-home-btn {
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
  }

  .auth-shell {
    min-height: 100svh;
  }

  .auth-card {
    padding: 28px 18px 34px;
  }

  .auth-showcase {
    min-height: 34svh;
    padding: 24px 18px;
  }

  .auth-showcase__brand {
    gap: 16px;
    margin-bottom: 24px;
  }

  .auth-showcase__logo {
    width: min(220px, 100%);
  }

  .auth-showcase__title {
    font-size: 28px;
  }

  .auth-showcase__copy {
    font-size: 15px;
    line-height: 1.6;
  }

  .auth-showcase__stats {
    gap: 10px;
    margin-top: 20px;
  }

  .auth-showcase__stat {
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
  }

  .auth-header {
    margin-bottom: 28px;
  }

  .auth-logo {
    max-width: 76px;
    height: 58px;
    margin-bottom: 18px;
  }

  .auth-title {
    font-size: 30px;
  }

  .phone-field {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }

  .auth-showcase {
    min-height: 40svh;
    padding: 36px 24px;
  }

  .auth-showcase__copy {
    max-width: 100%;
  }

  .auth-showcase__stats {
    width: 100%;
  }

  .auth-showcase__stat {
    flex: 1 1 180px;
  }

  .auth-showcase__title {
    font-size: 34px;
  }

  .auth-card {
    min-height: auto;
    padding: 42px 28px 36px;
  }
}
