.auth-shell {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--canvas);
  position: relative;
  overflow: hidden;
}
.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--card-line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 30% 50%, rgba(0,0,0,0.6), transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 30% 50%, rgba(0,0,0,0.6), transparent 60%);
  pointer-events: none;
  opacity: 0.55;
}

.auth-poster {
  position: relative;
  display: flex; align-items: center;
  padding: 140px 7vw clamp(180px, 16vw, 240px);
  background: linear-gradient(165deg, var(--accent-base) 0%, var(--accent-strong) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.auth-poster::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(circle at 20% 90%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.auth-poster::after {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 65%);
  filter: blur(80px);
  z-index: -1;
}
.auth-poster__inner { position: relative; z-index: 2; max-width: 520px; }
.auth-poster .badge-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.85);
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.auth-poster .badge-line::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px #fff;
}
.auth-poster h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: #fff;
  margin-bottom: 20px;
}
.auth-poster h1 em { font-style: normal; font-weight: 300; opacity: 0.85; }
.auth-poster p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  margin-bottom: 36px;
}
.auth-poster__list {
  list-style: none;
  display: grid; gap: 14px;
  margin-bottom: 36px;
}
.auth-poster__list li {
  display: flex; gap: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}
.auth-poster__list li::before {
  content: ""; flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 14px no-repeat;
}
.auth-poster__quote {
  margin-top: auto;
  padding: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
}
.auth-poster__quote p {
  font-size: 14px;
  color: #fff;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 14px;
  font-style: italic;
}
.auth-poster__quote .attrib {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}
.auth-poster__quote .attrib b { color: #fff; font-weight: 600; }

.auth-form-side {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 7vw clamp(180px, 16vw, 240px);
  background: var(--canvas);
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-deep);
  z-index: 2;
}
.auth-card h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 300;
  color: var(--headline);
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}
.auth-card .sub {
  font-size: 14px;
  color: var(--mute);
  font-weight: 400;
  margin-bottom: 36px;
  line-height: 1.55;
}
.auth-form { display: grid; gap: 18px; }
.auth-form .group { display: grid; gap: 8px; position: relative; }
.auth-form label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mute);
  text-transform: uppercase;
  font-weight: 500;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  padding: 14px 16px;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--headline);
  background: var(--card-soft);
  transition: border-color 200ms var(--easing), box-shadow 200ms var(--easing), background 200ms var(--easing);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent-base);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.password-row { position: relative; }
.password-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mute);
}
.password-toggle:hover { color: var(--accent-base); }
.password-toggle svg { width: 16px; height: 16px; }
.password-toggle .eye-off { display: none; }
.password-toggle.is-shown .eye { display: none; }
.password-toggle.is-shown .eye-off { display: block; }
.password-strength {
  margin-top: 8px;
  display: flex; align-items: center; gap: 12px;
}
.password-strength .meter-track {
  flex: 1;
  height: 6px;
  background: var(--card-line);
  border-radius: 999px;
  overflow: hidden;
}
.password-strength .meter {
  height: 100%;
  width: 0;
  background: var(--accent-base);
  transition: width 320ms var(--easing), background 320ms var(--easing);
}
.password-strength .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
  text-transform: uppercase;
  font-weight: 500;
  min-width: 100px;
  text-align: right;
}
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.auth-options label {
  display: flex; align-items: center; gap: 8px;
  color: var(--body);
  font-family: var(--body-font);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  cursor: pointer;
}
.auth-options input[type="checkbox"] { accent-color: var(--accent-base); }
.auth-options a { color: var(--accent-base); font-weight: 500; }
.auth-options a:hover { text-decoration: underline; }
.auth-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 6px;
  transition: background 200ms var(--easing), transform 200ms var(--bounce);
}
.auth-btn:hover { background: var(--accent-base); transform: translateY(-2px); }
.auth-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0 16px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; height: 1px;
  background: var(--card-line);
  flex: 1;
}
.auth-divider span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mute);
  text-transform: uppercase;
}
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.social-btn {
  padding: 13px;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--headline);
  font-weight: 500;
  transition: background 200ms var(--easing), border-color 200ms var(--easing), transform 200ms var(--bounce);
}
.social-btn:hover {
  background: var(--card-soft);
  border-color: var(--accent-base);
  transform: translateY(-2px);
}
.social-btn svg { width: 16px; height: 16px; }
.auth-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--body);
}
.auth-foot a { color: var(--accent-base); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }
.auth-error {
  display: none;
  margin-top: 4px;
  padding: 12px 14px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 10px;
  color: #DC2626;
  font-size: 13px;
  font-weight: 500;
}
.auth-error.is-shown { display: block; }

@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-poster { display: none; }
  .auth-form-side { padding: 120px 22px 80px; }
}
