:root {
  --auth-bg: #ffffff;
  --auth-bg-2: #f8fafc;
  --auth-panel: rgba(255, 255, 255, 0.92);
  --auth-line: #e3e8ef;
  --auth-text: #09090b;
  --auth-muted: #4b5565;
  --auth-accent: #3034ff;
  --auth-accent-2: #3034ff;
  --auth-danger: #e35d6a;
  --auth-radius: 18px;
  --auth-font-brand: "Syne", sans-serif;
  --auth-font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.auth-body {
  margin: 0;
  font-family: var(--auth-font-body);
  color: var(--auth-text);
  background: var(--auth-bg);
  overflow-x: hidden;
}

body.auth-body .content,
body.auth-body .container,
body.auth-body .container-fluid {
  max-width: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  isolation: isolate;
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.auth-shell::before {
  background:
    radial-gradient(900px 480px at 12% 18%, rgba(43, 184, 168, 0.22), transparent 60%),
    radial-gradient(700px 420px at 88% 12%, rgba(48, 52, 255, 0.12), transparent 55%),
    radial-gradient(640px 420px at 70% 88%, rgba(48, 52, 255, 0.12), transparent 60%),
    linear-gradient(160deg, var(--auth-bg), var(--auth-bg-2) 70%);
  animation: authGlow 12s ease-in-out infinite alternate;
}

.auth-shell::after {
  background-image:
    linear-gradient(rgba(48, 52, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 52, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 78%);
  opacity: 0.55;
}

.auth-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  z-index: -1;
  animation: authFloat 9s ease-in-out infinite;
}

.auth-orb--a {
  top: 12%;
  left: 8%;
  background: rgba(48, 52, 255, 0.18);
}

.auth-orb--b {
  right: 10%;
  bottom: 14%;
  background: rgba(48, 52, 255, 0.16);
  animation-delay: -3s;
}

.auth-frame {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.auth-brand,
.auth-panel {
  animation: authRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-panel {
  animation-delay: 0.12s;
}

.auth-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 8px;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  color: var(--auth-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--auth-accent), transparent);
}

.auth-brand h1 {
  margin: 0;
  font-family: var(--auth-font-brand);
  font-size: clamp(1.7rem, 3.1vw, 3rem);
  overflow-wrap: normal;
  white-space: nowrap;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.auth-brand h1 span {
  display: block;
  background: #3034ff;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-brand h2 {
  margin: 14px 0 0;
  font-family: var(--auth-font-brand);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #44507a;
}

.auth-brand p {
  margin: 16px 0 0;
  max-width: 34ch;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.auth-panel {
  position: relative;
  border: 1px solid var(--auth-line);
  border-radius: calc(var(--auth-radius) + 6px);
  background: var(--auth-panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(30, 50, 110, 0.14);
  overflow: hidden;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid var(--auth-line);
  background: #f7f9ff;
}

.auth-tab {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--auth-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 10px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.auth-tab:hover {
  color: var(--auth-text);
}

.auth-tab.is-active {
  color: #fff;
  background: #3034ff;
  transform: translateY(-1px);
}

.auth-body-panel {
  padding: 28px 26px 30px;
}

.auth-panel-title {
  margin: 0 0 6px;
  font-family: var(--auth-font-brand);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.auth-panel-desc {
  margin: 0 0 22px;
  color: var(--auth-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-form {
  display: none;
}

.auth-form.is-active {
  display: block;
  animation: authFade 0.35s ease both;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #44507a;
  font-size: 0.86rem;
  font-weight: 650;
}

.auth-field input {
  width: 100%;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
  color: var(--auth-text);
  font-family: inherit;
  font-size: 0.98rem;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input::placeholder {
  color: #8b96b4;
}

.auth-field input:focus {
  border-color: rgba(48, 52, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(48, 52, 255, 0.15);
  background: #fff;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  cursor: pointer;
  background: #3034ff;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 28px rgba(48, 52, 255, 0.25);
}

.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.auth-submit:active {
  transform: translateY(0);
}


.auth-legal {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--auth-muted);
}
.auth-legal a {
  color: var(--auth-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.9rem;
}

.auth-switch button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--auth-accent);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-foot {
  margin-top: 22px;
  color: #7a86a6;
  font-size: 0.78rem;
  text-align: center;
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authGlow {
  from {
    filter: saturate(1);
  }
  to {
    filter: saturate(1.15) brightness(1.05);
  }
}

@keyframes authFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 900px) {
  .auth-frame {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-brand {
    text-align: left;
    padding: 4px 2px 0;
  }

  .auth-brand p {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    padding: 20px 12px;
  }

  .auth-body-panel {
    padding: 22px 16px 24px;
  }

  .auth-brand h1 {
    font-size: 2.4rem;
  }
}

body.auth-body{font-family:Inter,system-ui,sans-serif}
.auth-submit,.auth-tab.is-active{background:#3034ff!important;color:#fff!important;border-radius:8px;box-shadow:inset 0 -3px 2px rgba(19,20,83,.25)}
.auth-panel{border-radius:14px}
.auth-field input{border-radius:8px}
