/* ============================================================
   Nexon Auth Login
   ============================================================ */

.auth-page {
  position: relative;
  min-height: calc(100vh - 80px);
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.20;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 94%);
}

.auth-bg__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(95px);
}

.auth-bg__orb--one {
  top: 4%;
  right: -120px;
  width: 360px;
  height: 360px;
  background: rgba(59, 130, 246, 0.36);
}

.auth-bg__orb--two {
  left: -120px;
  bottom: 8%;
  width: 340px;
  height: 340px;
  background: rgba(168, 85, 247, 0.28);
}

.auth-bg__orb--three {
  right: 28%;
  bottom: 10%;
  width: 260px;
  height: 260px;
  background: rgba(34, 197, 94, 0.16);
}

.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.48fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 34px 0 60px;
}

.auth-side {
  min-height: 640px;
  padding: 42px;
  border-radius: 36px;
  border: 1px solid rgba(147, 197, 253, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.26), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(168, 85, 247, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.020)),
    rgba(8, 13, 29, 0.90);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.050);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-badge span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.78);
}

.auth-title {
  margin: 26px 0 0;
  color: #ffffff;
  font-size: clamp(48px, 5.4vw, 82px);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: -0.085em;
}

.auth-title span {
  display: block;
  margin-top: 10px;
  background: linear-gradient(90deg, #ffffff 0%, #93c5fd 36%, #86efac 72%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-text {
  max-width: 820px;
  margin: 24px 0 0;
  color: rgba(219, 234, 254, 0.76);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 750;
}

.auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.auth-stat {
  min-height: 92px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(147, 197, 253, 0.13);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.045);
}

.auth-stat span {
  display: block;
  color: rgba(203, 213, 225, 0.68);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.auth-stat strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.auth-server-card {
  margin-top: 26px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.10), transparent 44%),
    rgba(255, 255, 255, 0.035);
}

.auth-server-card__label {
  display: block;
  color: rgba(203, 213, 225, 0.64);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.auth-server-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.auth-server-card__row strong {
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.auth-copy {
  appearance: none;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 32px;
  border: 1px solid rgba(147, 197, 253, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.070), rgba(255, 255, 255, 0.025)),
    rgba(8, 13, 29, 0.88);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.060);
}

.auth-card__glow {
  position: absolute;
  top: -120px;
  right: -110px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.18);
  filter: blur(70px);
  pointer-events: none;
}

.auth-card__head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.auth-card__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  border: 1px solid rgba(147, 197, 253, 0.14);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(168, 85, 247, 0.16)),
    rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.auth-card__icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.auth-card__kicker {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card__title {
  margin: 7px 0 0;
  color: #ffffff;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.06em;
}

.auth-card__subtitle {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  color: rgba(219, 234, 254, 0.72);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 700;
}

.auth-alert {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 850;
}

.auth-alert--error {
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.auth-alert span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 950;
}

.auth-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-label {
  color: rgba(219, 234, 254, 0.82);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.auth-input-shell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.040);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-input-shell:focus-within {
  border-color: rgba(96, 165, 250, 0.44);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.10);
}

.auth-input-shell.is-invalid {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.auth-input-shell__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 58px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 950;
}

.auth-input {
  width: 100%;
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
}

.auth-input::placeholder {
  color: rgba(203, 213, 225, 0.42);
}

.auth-password-toggle {
  appearance: none;
  height: 38px;
  margin-right: 10px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(219, 234, 254, 0.78);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.auth-field-error {
  color: #fca5a5;
  font-size: 12px;
  font-weight: 850;
}

.auth-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(219, 234, 254, 0.72);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-check span {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 7px;
  border: 1px solid rgba(147, 197, 253, 0.20);
  background: rgba(255, 255, 255, 0.045);
}

.auth-check span::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 4px;
  background: #22c55e;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-check input:checked + span::after {
  opacity: 1;
  transform: scale(1);
}

.auth-inline-link {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.auth-inline-link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
}

.auth-divider {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 22px 0;
  color: rgba(203, 213, 225, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(147, 197, 253, 0.10);
}

.auth-divider span {
  position: relative;
  z-index: 2;
  padding: 0 12px;
  background: rgba(8, 13, 29, 0.88);
}

.auth-bottom-links {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.auth-bottom-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, 0.10);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-bottom-link:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.auth-bottom-link span {
  color: rgba(219, 234, 254, 0.62);
  font-size: 12px;
  font-weight: 850;
}

.auth-bottom-link strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
}

.auth-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(8, 13, 29, 0.92);
  color: #bbf7d0;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(16px);
}

.auth-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1280px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-card {
    max-width: 620px;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    min-height: auto;
    padding: 20px 0 50px;
  }

  .auth-side,
  .auth-card {
    min-height: auto;
    padding: 22px;
    border-radius: 26px;
  }

  .auth-title {
    font-size: 44px;
    letter-spacing: -0.06em;
  }

  .auth-stats {
    grid-template-columns: 1fr;
  }

  .auth-server-card__row,
  .auth-form-row,
  .auth-bottom-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-card__head {
    grid-template-columns: 1fr;
  }

  .auth-input-shell {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .auth-password-toggle {
    grid-column: 1 / -1;
    width: calc(100% - 20px);
    margin: 0 10px 10px;
  }

  .auth-submit,
  .auth-copy {
    width: 100%;
  }
}
