:root {
  --bg: #061710;
  --bg-deep: #03120d;
  --panel: rgba(10, 33, 24, 0.84);
  --panel-strong: rgba(10, 33, 24, 0.96);
  --panel-border: rgba(204, 255, 210, 0.14);
  --text: #f4f6f1;
  --muted: #a6b7aa;
  --accent: #a8f062;
  --accent-strong: #80d42f;
  --accent-soft: rgba(168, 240, 98, 0.14);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 220, 62, 0.14), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(67, 136, 97, 0.24), transparent 24%),
    linear-gradient(135deg, #061710 0%, #082419 46%, #03120d 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.app-header,
.form-row {
  display: flex;
  align-items: center;
}

.app-header {
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto 28px;
  padding: 16px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: rgba(4, 18, 13, 0.56);
  backdrop-filter: blur(18px);
}

.app-brand img {
  width: clamp(170px, 22vw, 260px);
  height: auto;
}

.back-link,
.text-link {
  color: var(--muted);
  transition: color 180ms ease, opacity 180ms ease;
}

.back-link:hover,
.text-link:hover {
  color: var(--text);
}

.app-main {
  display: block;
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 140px);
}

.auth-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card {
  position: relative;
  width: 100%;
  padding: 38px;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(4, 18, 13, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 430px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.auth-hero {
  position: relative;
  padding: 18px 8px 18px 6px;
}

.auth-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 0.96;
}

.auth-hero-copy {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.auth-feature {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(186, 226, 183, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(4, 18, 13, 0.54);
  overflow: hidden;
}

.auth-feature::before {
  content: "";
  position: absolute;
  inset: auto -12% -30% auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 240, 98, 0.12), transparent 72%);
  pointer-events: none;
}

.auth-feature-label {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-feature strong {
  position: relative;
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  line-height: 1.15;
}

.auth-feature p {
  position: relative;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form-shell {
  position: relative;
  padding: 2px;
}

.auth-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  border: 1px solid rgba(186, 226, 183, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-switch-button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.auth-switch-button:hover,
.auth-switch-button:focus-visible {
  color: var(--text);
}

.auth-switch-button.is-active {
  background: rgba(168, 240, 98, 0.12);
  color: var(--text);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto 55%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 240, 98, 0.16), transparent 72%);
  pointer-events: none;
}

.auth-head {
  position: relative;
}

.auth-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.auth-head p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.auth-form.is-hidden,
.auth-footer.is-hidden {
  display: none;
}

.field {
  display: grid;
  gap: 10px;
}

.field span,
.remember-toggle {
  font-size: 0.92rem;
}

.field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(190, 230, 193, 0.14);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field input::placeholder {
  color: rgba(223, 230, 223, 0.42);
}

.field input:focus {
  border-color: rgba(168, 240, 98, 0.48);
  box-shadow: 0 0 0 4px rgba(168, 240, 98, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.form-row {
  justify-content: space-between;
  gap: 16px;
}

.remember-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

[data-login-status],
[data-register-status] {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.primary-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, #92df41 100%);
  color: #0b180f;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(146, 223, 65, 0.18);
  transition: color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.primary-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #f4ffe7 0%, #c8ff85 48%, #6fc529 100%);
  transform: translateX(-105%);
  transition: transform 320ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(146, 223, 65, 0.28);
}

.primary-action:hover::before {
  transform: translateX(0);
}

.primary-action span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(11, 24, 15, 0.14);
}

.auth-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(186, 226, 183, 0.12);
}

.auth-footer p {
  margin: 0;
  color: var(--muted);
}

.auth-footer-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 980px) {
  .app-main {
    min-height: auto;
  }

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

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

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

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .auth-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .auth-hero {
    padding: 4px 0 0;
  }

  .auth-hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .form-row,
  .auth-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-action {
    width: 100%;
  }
}
