/* Премиальные страницы входа и регистрации */

.auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--d-bg, #F7FAF8);
  color: var(--d-ink, #0B1210);
  font-family: var(--d-font-body, "Open Sans", system-ui, sans-serif);
  overflow-x: hidden;
}

.auth-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.auth-orbs i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: orbFloat 18s ease-in-out infinite;
}
.auth-orbs i:nth-child(1) { width: 520px; height: 520px; left: -120px; top: -140px; background: radial-gradient(circle, rgba(5,150,105,.45), transparent 70%); }
.auth-orbs i:nth-child(2) { width: 460px; height: 460px; right: -140px; bottom: -120px; background: radial-gradient(circle, rgba(234,88,12,.32), transparent 70%); animation-delay: -6s; }
.auth-orbs i:nth-child(3) { width: 380px; height: 380px; left: 42%; top: 52%; background: radial-gradient(circle, rgba(52,211,153,.28), transparent 70%); animation-delay: -11s; }
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(24px,-30px,0) scale(1.08); }
}

.auth-split {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  min-height: 100vh; max-width: 1440px; margin: 0 auto;
}

/* ---------- левая панель ---------- */
.auth-aside {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 40px 48px 34px;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(5,150,105,.16), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(234,88,12,.10), transparent 55%),
    var(--d-card, #fff);
  border-right: 1px solid var(--d-border, #E3ECE7);
}
.auth-brand { display: flex; flex-direction: column; text-decoration: none; color: var(--d-ink); line-height: 1.1; }
.auth-brand b { font-family: var(--d-font-head, "Manrope", sans-serif); font-size: 30px; font-weight: 800; letter-spacing: -.05em; }
.auth-brand span { font-size: 12px; color: var(--d-muted); margin-top: 3px; }

.auth-aside-copy { max-width: 520px; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.auth-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--d-font-head); font-weight: 800; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--d-primary-dark, #047857); margin: 0 0 18px;
}
.auth-kicker::before { content: ""; width: 30px; height: 3px; border-radius: 2px; background: var(--d-accent, #EA580C); }
.auth-aside h1 {
  font-family: var(--d-font-head); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(30px, 3.1vw, 44px); line-height: 1.06; margin: 0 0 16px; color: var(--d-ink);
}
.auth-lede { font-size: 16px; line-height: 1.65; color: var(--d-muted); margin: 0 0 26px; max-width: 460px; }

.auth-points { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--d-ink); font-weight: 500; }
.auth-points span {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--d-primary, #059669), #34D399);
  box-shadow: 0 6px 16px rgba(5,150,105,.28);
}

.auth-demo-card {
  background: var(--d-card); border: 1px solid var(--d-border); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11,18,16,.10); overflow: hidden; max-width: 440px;
  animation: rise .8s .1s cubic-bezier(.2,.7,.2,1) both;
}
.auth-demo-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--d-border); background: var(--d-soft); }
.auth-demo-head i { width: 9px; height: 9px; border-radius: 50%; background: var(--d-primary); box-shadow: 0 0 0 4px rgba(5,150,105,.14); }
.auth-demo-head b { font-family: var(--d-font-head); font-size: 13.5px; }
.auth-demo-head em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--d-muted); }
.auth-demo-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; font-size: 13.5px; line-height: 1.5; padding: 11px 14px; border-radius: 14px; }
.bubble.user { align-self: flex-end; background: var(--d-primary, #059669); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--d-soft); color: var(--d-ink); border-bottom-left-radius: 4px; }
.bubble-tag {
  display: inline-block; margin-top: 8px; padding: 5px 10px; border-radius: 8px;
  background: var(--d-card); border: 1px solid var(--d-border);
  font-size: 11.5px; font-weight: 700; color: var(--d-primary-dark);
}

.auth-aside-foot { display: flex; gap: 26px; flex-wrap: wrap; font-size: 12.5px; color: var(--d-muted); }
.auth-aside-foot b { color: var(--d-ink); font-family: var(--d-font-head); }

/* ---------- правая панель ---------- */
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 40px 32px; }
.auth-top { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top-link { font-size: 13.5px; color: var(--d-ink); text-decoration: none; font-weight: 600; }
.auth-top-link:hover { color: var(--d-primary-dark); }

.auth-card {
  width: 100%; max-width: 440px; background: var(--d-card); border: 1px solid var(--d-border);
  border-radius: 22px; padding: 30px 28px 26px; box-shadow: 0 30px 80px rgba(11,18,16,.12);
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
}
.auth-card h2 { font-family: var(--d-font-head); font-weight: 800; font-size: 26px; letter-spacing: -.03em; margin: 0 0 6px; }
.auth-sub { color: var(--d-muted); font-size: 14px; margin: 0 0 22px; line-height: 1.55; }

.auth-field { display: block; margin: 0 0 14px; }
.auth-field > span { display: block; font-family: var(--d-font-head); font-weight: 700; font-size: 13px; margin-bottom: 7px; color: var(--d-ink); }
.auth-input { position: relative; }
.auth-input input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--d-ink);
  background: var(--d-field, #fff); border: 1px solid var(--d-border); border-radius: 12px;
  padding: 12px 44px 12px 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-input input::placeholder { color: var(--d-muted); opacity: .7; }
.auth-input input:focus { outline: none; border-color: var(--d-primary); box-shadow: 0 0 0 4px rgba(5,150,105,.14); }
.auth-input input:user-invalid { border-color: #D14343; }
.auth-reveal {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--d-muted); font: inherit; font-size: 12px;
  padding: 6px 8px; border-radius: 8px; cursor: pointer;
}
.auth-reveal:hover { color: var(--d-primary-dark); background: var(--d-soft); }

.pwd-meter { height: 4px; border-radius: 3px; background: var(--d-border); margin-top: 9px; overflow: hidden; }
.pwd-meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: #D14343; transition: width .2s, background .2s; }
.pwd-meter[data-score="2"] i, .pwd-meter[data-score="3"] i { background: #D97706; }
.pwd-meter[data-score="4"] i, .pwd-meter[data-score="5"] i { background: var(--d-primary); }
.pwd-meter::after { content: attr(data-label); display: block; font-size: 11.5px; color: var(--d-muted); margin-top: 5px; }
.caps-hint { font-size: 11.5px; color: #B45309; margin: 6px 0 0; }

.auth-submit {
  width: 100%; margin-top: 6px; padding: 14px 18px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--d-font-head); font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #EA580C, #F97316);
  box-shadow: 0 14px 30px rgba(234,88,12,.28);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(234,88,12,.34); filter: saturate(1.05); }
.auth-submit:active { transform: translateY(0); }

.auth-error {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FDECE7; color: #9A3412; border: 1px solid #F5C9B7;
  border-radius: 12px; padding: 11px 13px; font-size: 13.5px; margin: 0 0 16px; line-height: 1.45;
}
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--d-muted); font-size: 12px; margin: 18px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--d-border); }
.auth-extra { font-size: 13px; color: var(--d-muted); margin: 14px 0 0; text-align: center; }
.auth-extra a { color: var(--d-primary-dark); font-weight: 600; }
.auth-legal { font-size: 12px; color: var(--d-muted); max-width: 440px; text-align: center; line-height: 1.55; margin: 0; }
.auth-legal a { color: var(--d-ink); }
.auth-optional summary { cursor: pointer; font-size: 13px; color: var(--d-primary-dark); font-weight: 600; margin: 2px 0 10px; }
.auth-note { font-size: 12px; color: var(--d-muted); margin: 6px 0 0; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- тёмная тема ---------- */
:root[data-theme="dark"] .auth-aside { background: radial-gradient(120% 90% at 10% 0%, rgba(5,150,105,.22), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(234,88,12,.16), transparent 55%), #0E1A15; }
:root[data-theme="dark"] .auth-card { box-shadow: 0 30px 80px rgba(0,0,0,.55); }
:root[data-theme="dark"] .auth-input input { background: #0F1C17; }
:root[data-theme="dark"] .auth-error { background: #3A1D12; color: #FDC9A8; border-color: #6B3220; }
:root[data-theme="dark"] .pwd-meter i { background: #F87171; }
:root[data-theme="dark"] .caps-hint { color: #FBBF24; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 28px 18px 40px; min-height: 100vh; }
  .auth-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-orbs i, .auth-card, .auth-aside-copy, .auth-demo-card { animation: none !important; }
}

/* служебные классы, которых нет на лендинге */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.auth-top .theme-seg, .auth-top .theme-choice{margin:0}
