:root:has(body.au) { background: #fbfbfd; }
.au {
  --ink: #0b0d12;
  --muted: #5f6470;
  --soft: #f4f5f8;
  --line: #e7e8ee;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fbfbfd;
}
body.au[data-mode="register"] .login-only { display: none; }
.au a { color: inherit; }

.au-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Left panel */
.au-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 36px 56px 32px;
  color: white;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, 0.2), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(168, 85, 247, 0.55), transparent 65%),
    linear-gradient(150deg, #1d4ed8 0%, #4f46e5 55%, #7c3aed 100%);
}
.au-aside::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.au-aside > * { position: relative; z-index: 1; }
.au .au-brand { display: inline-flex; align-items: center; gap: 10px; color: white; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.au-brand .logo { width: 34px; height: 26px; }

.au-pitch { margin-top: auto; max-width: 520px; }
.au-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.au-pitch h1 {
  margin: 0;
  color: white;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}
.au-ticks { list-style: none; display: grid; gap: 12px; margin: 28px 0 0; padding: 0; }
.au-ticks li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.9); }
.au-ticks span { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.au-ticks svg { width: 14px; height: 14px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.au-preview { position: relative; margin: 0 0 auto; height: 230px; max-width: 460px; }
.au-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(15, 10, 60, 0.55);
  transform: rotate(-3deg);
}
.au-card-img { position: relative; height: 150px; background: linear-gradient(160deg, #fde68a, #fca5a5); display: grid; place-items: center; }
.au-card-shoe { width: 150px; height: 80px; transform: rotate(-8deg); filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.25)); }
.au-card-shoe .upper { fill: #1f2937; }
.au-card-shoe .stripe { fill: none; stroke: #f97316; stroke-width: 5; stroke-linecap: round; }
.au-card-shoe .laces { fill: none; stroke: white; stroke-width: 2.5; stroke-linecap: round; }
.au-card-shoe .sole { fill: white; }
.au-card-tag { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: #ef4444; color: white; font-size: 11px; font-weight: 700; }
.au-card-body { display: grid; gap: 2px; padding: 12px 14px 14px; }
.au-card-body b { font-size: 14px; }
.au-card-body span { font-size: 13px; font-weight: 600; color: #16a34a; }
.au-card-body s { color: #9ca3af; font-weight: 400; margin-right: 4px; }
.au-stat {
  position: absolute;
  left: 244px;
  top: 64px;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.au-stat small { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.au-stat b { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: #bbf7d0; }
.au-stat span { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.au-foot { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* Right panel */
.au-main { position: relative; display: grid; place-items: center; padding: 72px 40px 48px; }
.au .au-back {
  position: absolute;
  top: 32px;
  left: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.au .au-back:hover { color: var(--ink); }
.au-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.au-panel { width: min(100%, 420px); }
.au-head h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.035em; font-weight: 700; color: var(--ink); }
.au-head p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.au-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 28px 0 24px; padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.au .au-tabs button {
  height: 38px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.au .au-tabs button:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.au .au-tabs button.on { background: white; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 2px 8px -2px rgba(16, 24, 40, 0.1); }

.au-form { display: grid; gap: 16px; }
.au-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.au-field { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
.au-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.au .au-label-row a { font-size: 13px; font-weight: 500; color: var(--blue); text-decoration: none; }
.au .au-label-row a:hover { text-decoration: underline; }
.au-field input, .au-field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.au-field input::placeholder { color: #a0a4ae; }
.au-field input:hover, .au-field select:hover { border-color: #d5d8e0; }
.au-field input:focus, .au-field select:focus { outline: none; border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
.au-phone { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; }
.au-password { position: relative; display: block; }
.au-password input { padding-right: 48px; }
.au .au-eye {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9px;
  background: transparent;
  color: #8b909c;
}
.au .au-eye:hover { background: rgba(0, 0, 0, 0.04); color: var(--ink); }
.au .au-eye.on { color: var(--blue); }
.au-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.au-accept { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.au-accept input { margin-top: 3px; flex: none; }
.au-accept a { color: var(--ink); }
.au-legal { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 18px 0 0; font-size: 12px; }
.au-legal a { color: var(--muted); text-decoration: none; }
.au-legal a:hover { color: var(--ink); }

.au-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 59, 48, 0.08); color: var(--red); font-size: 14px; }
.au-error[hidden] { display: none; }

.au .au-submit {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(180deg, #2b8cff, #007aff);
  box-shadow: 0 10px 24px -10px rgba(0, 122, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.au .au-submit:hover { background: linear-gradient(180deg, #2483f5, #006ee6); transform: translateY(-1px); }
.au .au-submit:disabled { opacity: 0.7; cursor: progress; transform: none; }

.au-perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 2px 0 0; padding: 0; }
.au-perks li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.au-perks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.au-switch { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.au .au-switch a { color: var(--blue); font-weight: 600; text-decoration: none; }
.au .au-switch a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .au-shell { grid-template-columns: 1fr; }
  .au-aside { gap: 24px; padding: 24px 24px 28px; }
  .au-pitch { margin-top: 8px; }
  .au-pitch h1 { font-size: 28px; }
  .au-ticks { margin-top: 18px; gap: 8px; }
  .au-ticks li { font-size: 14px; }
  .au-preview, .au-foot { display: none; }
  .au-main { padding: 40px 20px 48px; }
  .au .au-back { display: none; }
}

@media (max-width: 480px) {
  .au-pair { grid-template-columns: 1fr; }
  .au-phone { grid-template-columns: 120px minmax(0, 1fr); }
  .au-head h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .au .au-submit, .au-field input { transition: none; }
}
