@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&display=swap');

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(41,182,255,.16), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(114,91,255,.18), transparent 16%),
    radial-gradient(circle at 72% 78%, rgba(31,111,255,.12), transparent 22%),
    linear-gradient(180deg, #040913 0%, #07101a 22%, #091321 52%, #06101a 78%, #040913 100%);
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(44px);
  z-index: 0;
}

.auth-shell::before {
  top: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(41,182,255,.16), transparent 72%);
}

.auth-shell::after {
  right: -120px;
  bottom: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(114,91,255,.14), transparent 72%);
}

.auth-grid {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 26px;
  align-items: stretch;
}

.auth-showcase,
.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-showcase {
  min-height: 620px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
    linear-gradient(145deg, rgba(9,19,33,.96), rgba(6,12,22,.98));
  isolation: isolate;
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 18%, transparent 82%, rgba(255,255,255,.03)),
    radial-gradient(circle at 18% 20%, rgba(41,182,255,.12), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(114,91,255,.14), transparent 26%);
  z-index: -1;
}

.auth-showcase__top {
  display: grid;
  gap: 16px;
}

.auth-logo {
  width: min(100%, 320px);
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(31,111,255,.24));
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9adfff;
  background: rgba(41,182,255,.08);
  border: 1px solid rgba(41,182,255,.18);
}

.auth-showcase__title {
  margin: 0;
  font-family: 'Orbitron', 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #fff;
}

.auth-showcase__text {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 1.04rem;
  line-height: 1.6;
}

.auth-feature-list {
  display: grid;
  gap: 14px;
}

.auth-feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
}

.auth-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, rgba(31,111,255,.26), rgba(114,91,255,.26));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.auth-feature__content h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.auth-feature__content p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  line-height: 1.5;
}

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

.auth-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  font-size: .8rem;
  font-weight: 700;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.auth-card {
  min-height: 620px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    linear-gradient(180deg, rgba(11,22,38,.96), rgba(7,14,26,.99));
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,182,255,.16), transparent 72%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}

.auth-card__inner {
  position: relative;
  z-index: 2;
}

.auth-eyebrow {
  margin-bottom: 14px;
}

.auth-title {
  margin: 0 0 10px;
  font-family: 'Orbitron', 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: #fff;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.65;
}

.auth-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: .93rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.auth-alert--error {
  color: #ffd0d0;
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.24);
}

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

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

.auth-label {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  color: #fff;
  outline: none;
  transition:
    border-color var(--tr, 260ms ease),
    background var(--tr, 260ms ease),
    box-shadow var(--tr, 260ms ease),
    transform var(--tr-fast, 160ms ease);
}

.auth-input::placeholder {
  color: rgba(255,255,255,.38);
}

.auth-input:hover {
  background: rgba(255,255,255,.06);
}

.auth-input:focus {
  border-color: rgba(41,182,255,.34);
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 4px rgba(41,182,255,.10);
}

.auth-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  font-size: .98rem;
}

.auth-meta {
  margin-top: 18px;
  text-align: center;
  color: rgba(255,255,255,.54);
  font-size: .86rem;
  font-weight: 600;
}

.auth-footnote {
  margin-top: 12px;
  text-align: center;
  color: rgba(255,255,255,.42);
  font-size: .78rem;
}

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

  .auth-showcase {
    min-height: auto;
    order: 2;
  }

  .auth-card {
    min-height: auto;
    order: 1;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 18px 14px;
  }

  .auth-showcase,
  .auth-card {
    border-radius: 24px;
    padding: 22px;
  }

  .auth-showcase__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-feature {
    grid-template-columns: 42px 1fr;
    padding: 14px;
  }

  .auth-feature__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}
.auth-card,
.auth-panel,
.login-card{
  border-radius: 26px;
  border: 1px solid var(--premium-border);
  box-shadow: var(--premium-shadow);
  backdrop-filter: blur(14px);
}


.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 12%, rgba(56,189,248,.12), transparent 18%),
    radial-gradient(circle at 90% 10%, rgba(99,102,241,.12), transparent 16%),
    linear-gradient(180deg, #030712 0%, #07111f 42%, #040913 100%);
}

.auth-theme-switcher {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
}

.auth-card__inner {
  display: grid;
  gap: 0;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  font-weight: 600;
}

.auth-remember input {
  width: 18px;
  height: 18px;
  accent-color: #38bdf8;
}

.auth-password-toggle {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
}

.auth-submit.btn,
.auth-submit.btn.btn-primary {
  min-height: 58px;
  border-radius: 18px;
  font-weight: 800;
}

html[data-theme='light'] .auth-page {
  background:
    radial-gradient(circle at 10% 12%, rgba(56,189,248,.18), transparent 20%),
    radial-gradient(circle at 90% 10%, rgba(251,191,36,.18), transparent 18%),
    linear-gradient(180deg, #eef6ff 0%, #f7fbff 40%, #eef4fb 100%);
}

html[data-theme='light'] .auth-shell {
  background:
    radial-gradient(circle at 12% 18%, rgba(56,189,248,.10), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(251,191,36,.10), transparent 16%),
    radial-gradient(circle at 72% 78%, rgba(59,130,246,.08), transparent 22%),
    linear-gradient(180deg, #eef6ff 0%, #f6fbff 55%, #edf4fb 100%);
}

html[data-theme='light'] .auth-showcase,
html[data-theme='light'] .auth-card {
  border: 1px solid rgba(148,163,184,.22) !important;
  box-shadow: 0 26px 70px rgba(148,163,184,.18), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

html[data-theme='light'] .auth-showcase {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,247,255,.94)),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.96));
}

html[data-theme='light'] .auth-showcase::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), transparent 18%, transparent 82%, rgba(255,255,255,.72)),
    radial-gradient(circle at 18% 20%, rgba(56,189,248,.12), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(251,191,36,.12), transparent 26%);
}

html[data-theme='light'] .auth-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,249,255,.96)),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(240,247,255,.96));
}

html[data-theme='light'] .auth-kicker {
  color: #0369a1;
  background: rgba(56,189,248,.10);
  border-color: rgba(56,189,248,.22);
}

html[data-theme='light'] .auth-showcase__title,
html[data-theme='light'] .auth-feature__content h3,
html[data-theme='light'] .auth-title,
html[data-theme='light'] .auth-label {
  color: #0f172a;
}

html[data-theme='light'] .auth-showcase__text,
html[data-theme='light'] .auth-feature__content p,
html[data-theme='light'] .auth-subtitle,
html[data-theme='light'] .auth-meta,
html[data-theme='light'] .auth-footnote,
html[data-theme='light'] .auth-pill,
html[data-theme='light'] .auth-remember {
  color: rgba(15,23,42,.76);
}

html[data-theme='light'] .auth-feature {
  background: rgba(255,255,255,.72);
  border-color: rgba(148,163,184,.18);
}

html[data-theme='light'] .auth-feature__icon {
  color: #0f172a;
  background: linear-gradient(135deg, rgba(56,189,248,.28), rgba(125,211,252,.22));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

html[data-theme='light'] .auth-pill {
  background: rgba(255,255,255,.72);
  border-color: rgba(148,163,184,.16);
}

html[data-theme='light'] .auth-input {
  background: rgba(255,255,255,.98);
  color: #0f172a;
  border-color: rgba(148,163,184,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

html[data-theme='light'] .auth-input::placeholder {
  color: rgba(15,23,42,.38);
}

html[data-theme='light'] .auth-input:hover {
  background: #ffffff;
}

html[data-theme='light'] .auth-input:focus {
  border-color: rgba(37,99,235,.34);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(56,189,248,.12);
}

html[data-theme='light'] .auth-password-toggle {
  background: rgba(241,245,249,.96);
  color: #0f172a;
  border-color: rgba(148,163,184,.18);
}

html[data-theme='light'] .auth-password-toggle:hover {
  background: rgba(226,232,240,.96);
}

html[data-theme='light'] .auth-alert--error {
  color: #991b1b;
  background: rgba(254,242,242,.96);
  border-color: rgba(248,113,113,.24);
}

@media (max-width: 640px) {
  .auth-theme-switcher {
    top: 14px;
    right: 14px;
  }
}
