/* AvtoTime — login / register */
body.is-auth {
  padding-bottom: 0;
  min-height: 100vh;
  background:
    radial-gradient(720px 420px at 100% 0%, rgba(15, 118, 110, 0.1), transparent 55%),
    radial-gradient(560px 380px at 0% 100%, rgba(234, 88, 12, 0.07), transparent 48%),
    linear-gradient(165deg, #eef2f5, var(--steel-50));
}

.auth {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.auth-visual {
  display: none;
  position: relative;
  overflow: hidden;
  background: #0a0d12;
  color: #f8fafc;
}
.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(15, 118, 110, 0.55), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(234, 88, 12, 0.18), transparent),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  pointer-events: none;
}
.visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 44px;
  min-height: 100vh;
}
.visual-logo.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.visual-logo.brand .brand-name { color: #fff; }
.visual-logo.brand .brand-name span { color: var(--mint); }
.visual-logo.brand .brand-logo {
  height: 42px;
  max-width: 200px;
  filter: brightness(0) invert(1);
}
.visual-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
}
.visual-logo .brand-mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, #0f766e, #115e59);
  display: grid; place-items: center;
  font-size: 12px;
  color: #fff;
}
.visual-logo span { color: var(--mint); }
.visual-hand {
  color: rgba(153, 246, 228, 0.8) !important;
  font-size: 28px !important;
  margin-bottom: 10px;
  transform: rotate(-2deg);
}
.visual-main h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 12px;
}
.visual-main h2 .accent { color: var(--mint); }
.visual-main > p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.7);
  max-width: 40ch;
  margin-bottom: 22px;
}
.visual-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.visual-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 550;
  color: rgba(248, 250, 252, 0.92);
}
.visual-feature .check {
  width: 26px; height: 26px;
  border-radius: 9px;
  background: rgba(15, 118, 110, 0.35);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.visual-feature .check svg {
  width: 13px; height: 13px;
  stroke: var(--mint);
  stroke-width: 2.2;
  fill: none;
}
.visual-mini {
  display: grid;
  gap: 10px;
  margin-bottom: auto;
}
.visual-mini-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.visual-mini-card b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.visual-mini-card span {
  font-size: 12px;
  color: rgba(248, 250, 252, 0.55);
}
.visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.visual-stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mint);
}
.visual-stat-label {
  font-size: 11px;
  font-weight: 650;
  color: rgba(248, 250, 252, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 36px;
}
.form-wrap {
  width: min(440px, 100%);
  animation: fade-up 0.45s var(--ease) both;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
}
.mobile-brand .accent { color: var(--teal); }
.auth-head h1 {
  font-size: clamp(22px, 4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.auth-lead {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 500;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--steel-100);
  border-radius: 14px;
  margin-bottom: 18px;
}
.auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.auth-tabs a.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.auth-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.auth-steps span {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--steel-50);
  border: 1px solid var(--steel-100);
}
.auth-steps span.on {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: transparent;
}

.auth-form,
.form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-wrap label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-muted);
}
.form-wrap input:not([type='checkbox']),
.form-wrap select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--steel-200);
  background: #fff;
  padding: 0 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-wrap input:focus,
.form-wrap select:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.form-grid-2 {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.pass-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.pass-row input { flex: 1; }
.pass-row button {
  flex-shrink: 0;
  padding: 0 12px;
  height: 44px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-soft);
}
.pass-row button:hover { background: rgba(15, 118, 110, 0.18); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.slug-hint {
  margin: -4px 0 2px;
  font-size: 12px;
  color: var(--muted);
}
.slug-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--steel-50);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--teal);
  font-weight: 650;
}

.plan-pick {
  display: grid;
  gap: 8px;
}
.plan-pick-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'name price' 'meta meta';
  gap: 2px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--steel-200);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.plan-pick-item input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick-item.on {
  border-color: rgba(15, 118, 110, 0.5);
  background: rgba(15, 118, 110, 0.06);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}
.ppi-name {
  grid-area: name;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.ppi-name i {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--cta);
  color: #fff;
  padding: 2px 6px;
  border-radius: 99px;
  margin-left: 4px;
  vertical-align: middle;
}
.ppi-price {
  grid-area: price;
  font-size: 14px;
  font-weight: 800;
  color: var(--teal);
  text-align: right;
}
.ppi-price small { font-weight: 650; color: var(--muted); font-size: 11px; }
.ppi-meta {
  grid-area: meta;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

label.agree {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--ink-muted);
  line-height: 1.4;
}
label.agree input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--teal); }
.form-wrap .btn-book {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  font-size: 14.5px;
  border-radius: 14px;
}

.auth-demo {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--steel-50);
  border: 1px dashed var(--steel-200);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.auth-demo code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  font-weight: 650;
}
.auth-forgot {
  text-align: center;
  margin-top: 14px;
  font-size: 13.5px;
}
.auth-forgot a { color: var(--teal); font-weight: 700; }
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.auth-links a:hover { color: var(--teal); }
.auth-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.05);
  border: 1px solid rgba(15, 118, 110, 0.12);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .auth { grid-template-columns: 1.05fr 0.95fr; }
  .auth-visual { display: block; }
  .mobile-brand { display: none; }
  .auth-form-side {
    padding: 40px 48px;
    background: var(--surface);
    box-shadow: -24px 0 48px -32px rgba(18, 21, 28, 0.12);
  }
  .form-wrap { width: min(460px, 100%); }
}
