html:has(.auth-v2-app),
html:has(.auth-v2-app) body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
  background: #070d1c;
}

.auth-v2-app {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #dae2fd;
  background-color: #070d1c;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(0, 218, 248, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 115%, rgba(255, 200, 60, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #0a1124 0%, #070d1c 55%, #060a16 100%);
}

.auth-v2-app::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 120px 20px rgba(2, 5, 12, 0.7);
}

.auth-v2-app > * {
  position: relative;
  z-index: 1;
}

.auth-v2-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.92), rgba(8, 14, 30, 0.55));
  border-bottom: 1px solid rgba(0, 218, 248, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-v2-logo {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  color: #baf2ff;
  text-shadow: 0 0 18px rgba(0, 218, 248, 0.5), 0 0 32px rgba(255, 219, 60, 0.22);
}

.auth-v2-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffe9a0;
  background: rgba(255, 219, 60, 0.1);
  border: 1px solid rgba(255, 219, 60, 0.3);
  border-radius: 999px;
  padding: 5px 10px;
}

.auth-v2-content {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: none;
}

.auth-v2-content::-webkit-scrollbar {
  display: none;
}

.auth-v2-hero {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 218, 248, 0.22);
  background: linear-gradient(135deg, rgba(0, 218, 248, 0.10), rgba(20, 28, 50, 0.85));
  box-shadow: 0 0 26px rgba(0, 218, 248, 0.08);
}

.auth-v2-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00daf8;
}

.auth-v2-title {
  margin: 6px 0 0;
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
  color: #eef3ff;
}

.auth-v2-desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #b3c4e6;
}

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

.auth-v2-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-v2-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00daf8;
}

.auth-v2-field input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(59, 73, 76, 0.7);
  background: linear-gradient(180deg, rgba(20, 28, 50, 0.9), rgba(13, 19, 38, 0.96));
  color: #eef3ff;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  padding: 0 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.auth-v2-field input:focus {
  border-color: rgba(0, 224, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.12);
}

.auth-v2-field input::placeholder {
  color: #5f6f8f;
}

.auth-v2-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #00e0ff 0%, #00a3bd 100%);
  color: #04202a;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 224, 255, 0.3);
}

.auth-v2-submit:active {
  transform: translateY(1px);
}

.auth-v2-link {
  text-align: center;
  color: #8aa0c4;
  font-size: 14px;
}

.auth-v2-link a {
  color: #ffe9a0;
  font-weight: 700;
  text-decoration: none;
}

.auth-v2-errors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  color: #ffb4ab;
  background: rgba(255, 95, 110, 0.1);
  border: 1px solid rgba(255, 120, 110, 0.32);
  font-size: 13px;
  line-height: 1.35;
}

@media (min-width: 900px) {
  html:has(.auth-v2-app),
  html:has(.auth-v2-app) body {
    overflow: auto !important;
  }

  .auth-v2-app {
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    background-image:
      radial-gradient(circle at 20% 12%, rgba(0, 218, 248, 0.18) 0%, transparent 30%),
      radial-gradient(circle at 82% 82%, rgba(255, 200, 60, 0.08) 0%, transparent 34%),
      linear-gradient(180deg, #0a1124 0%, #070d1c 58%, #060a16 100%);
  }

  .auth-v2-topbar {
    width: 100%;
    height: 64px;
    padding: 0 clamp(28px, 5vw, 72px);
  }

  .auth-v2-logo {
    font-size: 26px;
  }

  .auth-v2-content {
    width: min(440px, calc(100vw - 48px));
    flex: 1 1 auto;
    justify-content: center;
    padding: 34px 0 44px;
    gap: 16px;
    overflow: visible;
  }

  .auth-v2-hero {
    padding: 22px;
    border-radius: 14px;
  }

  .auth-v2-title {
    font-size: 34px;
  }

  .auth-v2-field input,
  .auth-v2-submit {
    min-height: 52px;
  }
}
