*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #080808;
  --black-soft: #111111;
  --black-card: #141414;
  --black-border: #222222;
  --purple: #8B5CF6;
  --purple-light: #A78BFA;
  --purple-dim: #6D28D9;
  --white: #FAFAFA;
  --gray: #888888;
  --gray-light: #CCCCCC;
}

html {scrollbar-width: none;}

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% 10%, rgba(139,92,246,0.16), transparent 70%),
    linear-gradient(rgba(139,92,246,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.035) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--black-border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.logo-text {
  color: var(--white);
  font-size: 1.05rem;
}

.logo-text span,
.accent {
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--purple-light) !important;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(139,92,246,0.7);
  border-radius: 4px;
}

.nav-cta:hover {
  color: var(--white) !important;
  background: rgba(139,92,246,0.16);
}

/* AUTH */
.auth-section {
  min-height: 100vh;
  padding: 8rem clamp(1rem, 5vw, 4rem) 3rem;
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  background: rgba(20,20,20,0.9);
  border: 1px solid var(--black-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 28px 85px rgba(0,0,0,0.42);
}

.auth-form-card {
  padding: clamp(1.4rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,0.16), transparent 38%),
    linear-gradient(145deg, rgba(20,20,20,0.98), rgba(8,8,8,0.98));
}

.auth-form-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.auth-subtitle {
  color: var(--gray-light);
  font-size: 0.95rem;
  max-width: 440px;
  margin-bottom: 1.6rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.auth-input {
  width: 100%;
  min-height: 48px;
  background: #0f0f0f;
  border: 1px solid var(--black-border);
  color: var(--white);
  border-radius: 5px;
  padding: 0.85rem 1rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.13);
  background: #111;
}

.auth-input::placeholder {
  color: var(--gray);
}

.password-box {
  position: relative;
  width: 100%;
}

.password-box .auth-input {
  padding-right: 4.8rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--purple-light);
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8rem;
}

.password-toggle:hover {
  color: var(--white);
}

.auth-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.btn-primary,
.auth-submit {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 5px;
  padding: 0.95rem 1rem;
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover,
.auth-submit:hover {
  background: var(--purple-dim);
  transform: translateY(-2px);
}

.auth-links {
  display: grid;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.88rem;
}

.auth-links a {
  color: var(--gray-light);
  text-decoration: none;
}

.auth-links a span,
.auth-links a:hover {
  color: var(--purple-light);
}

.auth-note {
  margin-top: 1rem;
  color: var(--gray);
  font-size: 0.78rem;
  text-align: center;
}

/* SIDE IMAGE */
.auth-media {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
  border-left: 1px solid var(--black-border);
  background:
    radial-gradient(circle at center, rgba(139,92,246,0.2), transparent 38%),
    #080808;
}

.auth-media img {
  width: min(320px, 82%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(139,92,246,0.22));
}

/* FOOTER */
.footer-bottom {
  border-top: 1px solid var(--black-border);
  padding: 1rem clamp(1rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--gray);
  font-size: 0.85rem;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-media {
    display: none;
  }
}

@media (max-width: 620px) {
  nav {
    min-height: 70px;
  }

  .logo img {
    width: 34px;
    height: 34px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .auth-section {
    padding: 6rem 1rem 2rem;
  }

  .auth-form-card {
    padding: 1.25rem;
  }

  .auth-row {
    grid-template-columns: 1fr;
  }

  .auth-form-card h2 {
    font-size: 2rem;
  }
}