:root {
  --bg: #0a0f1f;
  --bg-soft: #121931;
  --card: rgba(18, 25, 49, 0.92);
  --card-2: rgba(24, 34, 66, 0.95);
  --text: #eef3ff;
  --muted: #a1afd0;
  --line: rgba(255,255,255,0.08);
  --blue: #6ea7ff;
  --blue-2: #477eff;
  --pink: #ff3ea5;
  --cyan: #6cf2ff;
  --green: #19c37d;
  --red: #ef4444;
  --yellow: #f59e0b;
  --shadow: 0 18px 40px rgba(0,0,0,0.34);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 62, 165, 0.12), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(108, 242, 255, 0.10), transparent 22%),
    radial-gradient(circle at 50% 75%, rgba(71, 126, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #090e1c 0%, #0d1326 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.005)),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0.25;
  mix-blend-mode: screen;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  opacity: 0.94;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(14, 20, 40, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79,140,255,0.15);
  color: #dbe7ff;
  font-size: 13px;
  border: 1px solid rgba(79,140,255,0.24);
}

.badge.green {
  background: rgba(25,195,125,0.14);
  border-color: rgba(25,195,125,0.22);
  color: #d8ffed;
}

.badge.yellow {
  background: rgba(245,158,11,0.14);
  border-color: rgba(245,158,11,0.22);
  color: #ffe9bf;
}

.badge.red {
  background: rgba(239,68,68,0.14);
  border-color: rgba(239,68,68,0.22);
  color: #ffd9d9;
}

.card {
  background: linear-gradient(180deg, rgba(24,34,66,0.96), rgba(17,24,46,0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.card h2, .card h3 {
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.category-card,
.topic-card {
  background: linear-gradient(180deg, rgba(28,39,74,0.98), rgba(19,27,53,0.98));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.category-card h3,
.topic-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn,
button {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
}

.btn-primary,
button {
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
  color: white;
}

.btn-danger {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: white;
}

.btn-muted {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

input, textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input::placeholder,
textarea::placeholder {
  color: #8091b8;
}

.form-box {
  width: min(640px, calc(100% - 32px));
  margin: 56px auto;
}

.form-actions {
  margin-top: 14px;
}

.post {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.post + .post {
  margin-top: 14px;
}

.post-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.post-author {
  font-weight: bold;
}

.post-content {
  white-space: pre-wrap;
  line-height: 1.6;
}

.post.hidden {
  border-left: 4px solid var(--yellow);
  background: rgba(245,158,11,0.08);
}

.small-link {
  font-size: 14px;
  color: var(--muted);
}

.locked {
  color: #ffce86;
}

.pin {
  color: #9fd0ff;
  font-weight: bold;
}

.empty {
  color: var(--muted);
  padding: 10px 0;
}

hr.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

/* ===== NEON URBAN LOGO ===== */

.urban-hero {
  position: relative;
  padding: 0 0 8px;
  overflow: hidden;
}

.urban-logo-wrap {
  position: relative;
  display: inline-block;
  padding-bottom: 26px;
}

.urban-logo {
  position: relative;
  display: inline-block;
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 2px rgba(255,255,255,0.95),
    0 0 10px rgba(108,242,255,0.65),
    0 0 18px rgba(108,242,255,0.45),
    0 0 26px rgba(255,62,165,0.48),
    -3px 0 rgba(255,62,165,0.55),
    3px 0 rgba(108,242,255,0.45);
  animation: urbanPulse 3.6s ease-in-out infinite, urbanFlicker 7s linear infinite;
  filter: drop-shadow(0 0 18px rgba(71,126,255,0.35));
}

.urban-logo::before,
.urban-logo::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.urban-logo::before {
  color: rgba(255, 62, 165, 0.95);
  transform: translate(-3px, 0);
  mix-blend-mode: screen;
  animation: urbanGlitchLeft 5.2s infinite steps(1);
}

.urban-logo::after {
  color: rgba(108, 242, 255, 0.95);
  transform: translate(3px, 0);
  mix-blend-mode: screen;
  animation: urbanGlitchRight 4.8s infinite steps(1);
}

.urban-reflection {
  position: absolute;
  left: 0;
  top: 100%;
  transform: scaleY(-1);
  transform-origin: top;
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  text-shadow:
    0 0 8px rgba(108,242,255,0.12),
    0 0 16px rgba(255,62,165,0.10);
  filter: blur(1px);
  opacity: 0.20;
  -webkit-mask-image: linear-gradient(to bottom, rgba(255,255,255,0.32), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(255,255,255,0.32), transparent 70%);
  pointer-events: none;
}

.urban-code {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(207, 219, 255, 0.18);
  font-size: 0;
  letter-spacing: 0.28em;
  text-shadow: 0 0 8px rgba(108,242,255,0.15);
  filter: blur(0.3px);
}

.urban-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes urbanPulse {
  0%, 100% {
    text-shadow:
      0 0 2px rgba(255,255,255,0.95),
      0 0 10px rgba(108,242,255,0.65),
      0 0 18px rgba(108,242,255,0.45),
      0 0 26px rgba(255,62,165,0.48),
      -3px 0 rgba(255,62,165,0.55),
      3px 0 rgba(108,242,255,0.45);
  }
  50% {
    text-shadow:
      0 0 2px rgba(255,255,255,1),
      0 0 14px rgba(108,242,255,0.82),
      0 0 26px rgba(108,242,255,0.62),
      0 0 40px rgba(255,62,165,0.62),
      -4px 0 rgba(255,62,165,0.70),
      4px 0 rgba(108,242,255,0.62);
  }
}

@keyframes urbanFlicker {
  0%, 18%, 22%, 63%, 100% { opacity: 1; }
  20% { opacity: 0.93; }
  21% { opacity: 0.80; }
  64% { opacity: 0.95; }
  65% { opacity: 0.84; }
  66% { opacity: 1; }
}

@keyframes urbanGlitchLeft {
  0%, 88%, 100% { transform: translate(-3px, 0); opacity: 0.50; }
  89% { transform: translate(-6px, -2px); opacity: 0.68; }
  90% { transform: translate(-1px, 1px); opacity: 0.45; }
  91% { transform: translate(-5px, 0); opacity: 0.72; }
}

@keyframes urbanGlitchRight {
  0%, 83%, 100% { transform: translate(3px, 0); opacity: 0.46; }
  84% { transform: translate(7px, 2px); opacity: 0.68; }
  85% { transform: translate(2px, -1px); opacity: 0.40; }
  86% { transform: translate(6px, 0); opacity: 0.66; }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .urban-logo-wrap {
    padding-bottom: 34px;
  }
}

/* ===== LOGIN PAGE TUNE ===== */

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.login-card {
  width: min(640px, calc(100% - 24px));
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(20,29,58,0.96), rgba(13,20,40,0.97));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(255,62,165,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(108,242,255,0.08), transparent 26%);
  opacity: 0.9;
}

.login-inner {
  position: relative;
  z-index: 1;
}

.login-hero {
  padding: 6px 0 2px;
}

.login-hero .urban-logo-wrap {
  padding-bottom: 12px;
}

.login-hero .urban-logo {
  font-size: clamp(30px, 5.6vw, 58px);
  letter-spacing: 0.07em;
  text-shadow:
    0 0 2px rgba(255,255,255,0.95),
    0 0 8px rgba(108,242,255,0.45),
    0 0 14px rgba(108,242,255,0.32),
    0 0 18px rgba(255,62,165,0.28),
    -2px 0 rgba(255,62,165,0.28),
    2px 0 rgba(108,242,255,0.22);
  filter: drop-shadow(0 0 10px rgba(71,126,255,0.18));
}

.login-hero .urban-logo::before {
  transform: translate(-1.5px, 0);
  opacity: 0.28;
}

.login-hero .urban-logo::after {
  transform: translate(1.5px, 0);
  opacity: 0.24;
}

.login-hero .urban-reflection {
  font-size: clamp(30px, 5.6vw, 58px);
  opacity: 0.10;
  top: 100%;
  filter: blur(0.8px);
}

.login-subtle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-form {
  margin-top: 8px;
}

.login-form input {
  max-width: none;
  height: 46px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.login-form input:focus {
  border-color: rgba(110,167,255,0.45);
  box-shadow:
    0 0 0 3px rgba(79,140,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.login-form .form-actions {
  margin-top: 12px;
}

.login-form button {
  width: auto;
  min-width: 112px;
  border-radius: 14px;
  padding: 11px 18px;
}

.login-sep {
  margin: 16px 0 18px;
}

@media (max-width: 700px) {
  .login-card {
    border-radius: 20px;
  }

  .login-hero .urban-logo {
    font-size: clamp(28px, 10vw, 46px);
  }

  .login-hero .urban-reflection {
    font-size: clamp(28px, 10vw, 46px);
  }
}

/* ===== LOGIN LOGO SMOOTH EDGES FIX ===== */

.login-hero {
  position: relative;
  overflow: visible;
}

.login-hero .urban-logo-wrap {
  position: relative;
  display: inline-block;
  overflow: visible;
  isolation: isolate;
  padding: 6px 20px 14px 14px;
  margin-left: -6px;
}

.login-hero .urban-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -22px -30px -24px -30px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 46%, rgba(255,255,255,0.12), transparent 22%),
    radial-gradient(circle at 34% 46%, rgba(108,242,255,0.16), transparent 34%),
    radial-gradient(circle at 58% 48%, rgba(255,62,165,0.12), transparent 38%),
    radial-gradient(circle at 76% 46%, rgba(71,126,255,0.12), transparent 34%);
  filter: blur(24px);
  opacity: 0.95;
}

.login-hero .urban-logo,
.login-hero .urban-reflection,
.login-hero .login-subtle {
  position: relative;
  z-index: 1;
}

.login-hero .urban-logo {
  text-shadow:
    0 0 2px rgba(255,255,255,0.95),
    0 0 8px rgba(108,242,255,0.42),
    0 0 14px rgba(108,242,255,0.28),
    0 0 18px rgba(255,62,165,0.22),
    -1.5px 0 rgba(255,62,165,0.18),
    1.5px 0 rgba(108,242,255,0.18);
}

.login-hero .urban-logo::before {
  transform: translate(-1px, 0);
  opacity: 0.18;
}

.login-hero .urban-logo::after {
  transform: translate(1px, 0);
  opacity: 0.16;
}

.login-hero .urban-reflection {
  opacity: 0.07;
  filter: blur(1.2px);
}

/* ===== PREMIUM AUTH ===== */

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-card {
  width: min(980px, calc(100% - 24px));
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(16,23,44,0.96), rgba(11,18,34,0.97));
  box-shadow:
    0 24px 70px rgba(0,0,0,0.46),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 24%, rgba(255,62,165,0.10), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(108,242,255,0.10), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(71,126,255,0.08), transparent 35%);
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.03);
}

.auth-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 560px;
}

.auth-brand {
  position: relative;
  padding: 42px 42px 38px;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 28%, rgba(255,255,255,0.05), transparent 18%),
    radial-gradient(circle at 35% 28%, rgba(108,242,255,0.12), transparent 26%),
    radial-gradient(circle at 60% 30%, rgba(255,62,165,0.10), transparent 28%);
  filter: blur(18px);
}

.auth-brand-top {
  position: relative;
  z-index: 1;
}

.auth-brand .urban-logo-wrap {
  position: relative;
  display: inline-block;
  overflow: visible;
  padding: 8px 18px 14px 10px;
  isolation: isolate;
}

.auth-brand .urban-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -18px -26px -18px -22px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 48%, rgba(255,255,255,0.10), transparent 18%),
    radial-gradient(circle at 34% 48%, rgba(108,242,255,0.14), transparent 28%),
    radial-gradient(circle at 58% 48%, rgba(255,62,165,0.10), transparent 30%);
  filter: blur(22px);
  opacity: 0.92;
}

.auth-brand .urban-logo,
.auth-brand .urban-reflection {
  position: relative;
  z-index: 1;
}

.auth-brand .urban-logo {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: 0.08em;
  text-shadow:
    0 0 2px rgba(255,255,255,0.95),
    0 0 8px rgba(108,242,255,0.40),
    0 0 14px rgba(108,242,255,0.28),
    0 0 18px rgba(255,62,165,0.22),
    -1px 0 rgba(255,62,165,0.16),
    1px 0 rgba(108,242,255,0.16);
  filter: drop-shadow(0 0 10px rgba(71,126,255,0.16));
}

.auth-brand .urban-logo::before {
  transform: translate(-1px, 0);
  opacity: 0.16;
}

.auth-brand .urban-logo::after {
  transform: translate(1px, 0);
  opacity: 0.14;
}

.auth-brand .urban-reflection {
  font-size: clamp(34px, 5vw, 64px);
  opacity: 0.08;
  filter: blur(1.1px);
}

.auth-kicker {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-title {
  margin: 34px 0 10px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.08;
}

.auth-text {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.auth-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.auth-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.auth-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue), var(--pink));
  box-shadow: 0 0 12px rgba(79,140,255,0.45);
  flex: 0 0 auto;
}

.auth-point strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.auth-point span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-side {
  padding: 42px 38px 38px;
  display: flex;
  align-items: center;
}

.auth-panel {
  width: 100%;
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.auth-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form input {
  max-width: none;
  height: 52px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.auth-form input:focus {
  border-color: rgba(110,167,255,0.46);
  box-shadow:
    0 0 0 4px rgba(79,140,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.auth-form .form-actions {
  margin-top: 14px;
}

.auth-form button {
  width: auto;
  min-width: 128px;
  border-radius: 16px;
  padding: 12px 18px;
}

.auth-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

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

  .auth-brand {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 28px;
  }

  .auth-side {
    padding-top: 26px;
  }
}

@media (max-width: 640px) {
  .auth-card {
    border-radius: 22px;
  }

  .auth-brand,
  .auth-side {
    padding: 26px 22px;
  }

  .auth-title {
    margin-top: 22px;
  }

  .auth-brand .urban-logo {
    font-size: clamp(30px, 10vw, 46px);
  }

  .auth-brand .urban-reflection {
    font-size: clamp(30px, 10vw, 46px);
  }
}

/* ===== FINAL LOGIN POLISH ===== */

.auth-grid {
  min-height: 520px;
}

.auth-brand,
.auth-side {
  padding-top: 34px;
  padding-bottom: 34px;
}

.auth-brand {
  justify-content: center;
}

.auth-brand-top {
  max-width: 460px;
}

.auth-title {
  max-width: 430px;
  margin: 26px 0 10px;
  line-height: 1.08;
}

.auth-text {
  max-width: 410px;
  font-size: 15px;
  line-height: 1.72;
}

.auth-points {
  max-width: 445px;
  margin-top: 24px;
  gap: 0;
}

.auth-point {
  padding: 14px 16px;
  border-radius: 18px;
}

.auth-side {
  display: flex;
  align-items: center;
}

.auth-panel {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.auth-panel h2 {
  margin-bottom: 10px;
}

.auth-panel p {
  margin-bottom: 20px;
}

.auth-foot {
  margin-top: 16px;
  max-width: 340px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .auth-grid {
    min-height: 0;
  }

  .auth-brand {
    justify-content: flex-start;
  }

  .auth-panel {
    max-width: none;
  }

  .auth-points,
  .auth-brand-top,
  .auth-text,
  .auth-title {
    max-width: none;
  }
}

/* ===== FINAL CLEAN ALIGN ===== */

.auth-grid {
  align-items: center;
  min-height: 500px;
}

.auth-brand {
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.auth-brand > div {
  width: 100%;
  max-width: 460px;
}

.auth-brand-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-kicker {
  margin-top: 2px;
  margin-bottom: 0;
}

.auth-title {
  margin: 22px 0 0;
  max-width: 420px;
  line-height: 1.06;
}

.auth-points {
  margin-top: 22px;
  max-width: 420px;
}

.auth-point {
  min-height: 72px;
  align-items: center;
}

.auth-point > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-side {
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.auth-panel {
  max-width: 360px;
}

.auth-panel h2 {
  margin: 0 0 14px;
  line-height: 1.1;
}

.auth-form {
  margin-top: 0;
}

.auth-form input + input {
  margin-top: 10px;
}

.auth-form .form-actions {
  margin-top: 14px;
}

.auth-foot {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .auth-brand > div,
  .auth-title,
  .auth-points,
  .auth-panel {
    max-width: none;
  }

  .auth-brand,
  .auth-side {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* ===== INVITE ENTRY PAGE ===== */

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

.invite-input-wrap .invite-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.72;
  pointer-events: none;
}

.invite-input-wrap input {
  padding-left: 42px;
}

.auth-link-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.auth-link-row a {
  font-size: 13px;
  color: var(--muted);
}

/* ===== AUTH FINAL POLISH ===== */

.auth-card {
  width: min(1040px, calc(100% - 24px));
}

.auth-grid {
  align-items: stretch;
  min-height: 560px;
}

.auth-brand,
.auth-side {
  padding-top: 38px;
  padding-bottom: 38px;
}

.auth-brand {
  justify-content: center;
}

.auth-brand > div {
  width: 100%;
  max-width: 470px;
}

.auth-brand-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-kicker {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.auth-title {
  margin: 24px 0 0;
  max-width: 430px;
  line-height: 1.06;
  font-size: clamp(24px, 3vw, 42px);
}

.auth-points {
  max-width: 430px;
  margin-top: 24px;
}

.auth-point {
  min-height: 78px;
  border-radius: 20px;
  padding: 14px 16px;
  align-items: center;
}

.auth-point > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-point strong {
  margin-bottom: 4px;
}

.auth-side {
  align-items: center;
}

.auth-panel {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.auth-panel h2 {
  margin: 0 0 12px;
  line-height: 1.1;
  font-size: 24px;
}

.auth-panel-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-form {
  margin-top: 0;
}

.auth-form input + input {
  margin-top: 10px;
}

.auth-form .form-actions {
  margin-top: 14px;
}

.auth-form button {
  min-width: 148px;
}

.auth-form .cf-turnstile {
  margin-top: 14px;
}

.auth-link-row {
  margin-top: 14px;
}

.auth-link-row a {
  color: var(--muted);
  font-size: 13px;
}

.auth-link-row a:hover {
  color: var(--text);
}

.auth-foot {
  margin-top: 14px;
  max-width: 340px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.invite-input-wrap input {
  height: 52px;
}

@media (max-width: 900px) {
  .auth-grid {
    min-height: 0;
  }

  .auth-brand,
  .auth-side {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .auth-brand > div,
  .auth-title,
  .auth-points,
  .auth-panel {
    max-width: none;
  }
}
