.auth-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 124, 255, 0.32), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.18), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.18), transparent 38%),
    linear-gradient(180deg, #07101f, #040814);
  z-index: -1;
}

.auth-shell {
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  place-items: center;
}

.auth-brand {
  position: fixed;
  top: 26px;
  left: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  z-index: 10;
}

.auth-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
}

.auth-card {
  width: min(520px, 100%);
  padding: 46px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 34px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 110px rgba(47, 124, 255, 0.14);
  backdrop-filter: blur(26px);
}

.signup-card {
  width: min(1050px, 100%);
}

.auth-card h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  margin-top: 0.55rem;
  background: linear-gradient(135deg, #ffffff, #dbeafe, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.auth-sub {
  color: var(--muted);
  margin: 1.15rem 0 2.1rem;
  line-height: 1.75;
  font-size: 1.05rem;
}

form {
  display: grid;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.35rem;
}

.full {
  grid-column: span 2;
}

label {
  display: block;
  color: #c9d7ee;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

input,
select {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  background: rgba(7, 16, 31, 0.82);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  transition: 0.25s ease;
}

select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #38bdf8 50%),
    linear-gradient(135deg, #38bdf8 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 24px,
    calc(100% - 15px) 24px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

input::placeholder {
  color: rgba(201, 215, 238, 0.68);
}

input:focus,
select:focus {
  border-color: var(--cyan);
  background: rgba(7, 16, 31, 0.95);
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.09),
    0 0 28px rgba(56, 189, 248, 0.12);
}

.auth-btn {
  height: 68px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 18px 45px rgba(37, 99, 235, 0.35),
    0 0 45px rgba(56, 189, 248, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.auth-btn:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 24px 60px rgba(37, 99, 235, 0.45),
    0 0 70px rgba(56, 189, 248, 0.28);
  filter: brightness(1.08);
}

.auth-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 10px 30px rgba(37, 99, 235, 0.32),
    0 0 35px rgba(56, 189, 248, 0.2);
}

.auth-switch {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.auth-switch a {
  color: var(--cyan);
  font-weight: 900;
}

.demo-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.password-box {
  position: relative;
}

.password-box input {
  padding-right: 56px;
}

.eye-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s ease;
}

.eye-btn:hover {
  background: rgba(56, 189, 248, 0.18);
}

.scroll-input {
  overflow-x: auto;
  white-space: nowrap;
  text-overflow: clip;
}

.signup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.signup-actions .auth-btn {
  width: 420px;
  margin: 0;
}

.signup-actions .auth-switch {
  margin: 0;
  text-align: left;
}

@media (max-width: 800px) {
  .auth-brand {
    position: static;
    margin-bottom: 2rem;
    justify-content: center;
  }

  .auth-shell {
    padding-top: 24px;
  }

  .auth-card {
    padding: 30px 22px;
    border-radius: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: span 1;
  }

  .signup-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .signup-actions .auth-btn {
    width: 100%;
  }

  .signup-actions .auth-switch {
    text-align: center;
  }
}

/* ================================
   AUTH MOBILE FIX
   ================================ */

@media (max-width: 768px) {
  .auth-shell {
    width: 100%;
    min-height: 100vh;
    padding: 24px 16px;
  }

  .auth-brand {
    margin-bottom: 24px;
  }

  .auth-card {
    width: 100%;
    padding: 28px 20px;
    border-radius: 28px;
  }

  .auth-card h1 {
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -1.6px;
  }

  .auth-sub {
    font-size: 16px;
    line-height: 1.55;
  }

  .auth-card input,
  .auth-card select,
  .auth-card textarea {
    width: 100%;
    font-size: 16px;
  }

  .auth-btn {
    width: 100%;
  }
}