:root {
  color-scheme: dark;
  --bg: #01020d;
  --bg-gradient: radial-gradient(circle at 18% 18%, rgba(var(--brand-primary-rgb), 0.32), transparent 60%),
    radial-gradient(circle at 82% 28%, rgba(var(--brand-primary-rgb), 0.14), transparent 62%),
    radial-gradient(circle at 52% 92%, rgba(var(--brand-primary-2-rgb), 0.22), transparent 72%),
    #01020d;
  --panel-glass: rgba(5, 7, 18, 0.82);
  --panel-border: rgba(255, 255, 255, 0.05);
  --text: #f4f7ff;
  --text-muted: #8f9ab5;
  --accent-a: var(--brand-primary);
  --accent-b: var(--brand-primary-2);
  --field-border: rgba(255, 255, 255, 0.12);
  --field-bg: rgba(8, 11, 24, 0.72);
  --shadow-xl: 0 28px 60px rgba(2, 5, 18, 0.5);
  font-family: "Poppins", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 32px 64px;
  background: var(--bg-gradient);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
}

body.reset-page {
  padding: 48px 24px 64px;
}

@media (max-width: 960px), (max-height: 760px) {
  body {
    align-items: flex-start;
  }
}

.auth-container {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(330px, 380px) minmax(360px, 1fr);
  gap: 52px;
  padding: 48px 60px 11px;
  margin-bottom: 0;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(21, 56, 140, 0.25), rgba(3, 6, 20, 0.85));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: visible;
}

.auth-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(84, 150, 255, 0.18);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

body.reset-page .auth-container {
  grid-template-columns: 1fr;
  max-width: 520px;
  padding: 40px 38px 34px;
}

body.reset-page .auth-container::after {
  display: none;
}

.auth-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.reset-page .auth-content {
  gap: 18px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  margin-top: -6px;
}

.auth-brand img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 22px 46px rgba(5, 32, 112, 0.75));
}

.signup-view .auth-form {
  margin-top: 5px;
}

.auth-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 8px;
}

.auth-header-link {
  font-size: 14px;
  color: #9fa6c0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.auth-header-link span {
  color: var(--text);
  font-weight: 600;
}

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

.auth-heading {
  margin: 0;
  font-size: clamp(32px, 4vw, 45px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.auth-lede {
  margin: 10px 0 0;
  max-width: 544px;
  font-size: 15px;
  line-height: 1.55;
  color: #6d6e78;
}

.auth-homie-note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #9d89ff;
  font-weight: 600;
}

.homie-accent {
  color: rgba(190, 246, 96, 0.95);
  text-shadow: 0 0 18px rgba(190, 246, 96, 0.45);
}

body.auth-homie-mode .auth-lede {
  color: rgba(176, 188, 222, 0.85);
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.input-shell {
  position: relative;
}

.input-shell input {
  width: 100%;
  height: 50px;
  border-radius: 15px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--text);
  font-size: 15px;
  padding: 0 18px;
  letter-spacing: 0.01em;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input-shell--password {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 56px;
}

.input-error {
  margin: 0;
  font-size: 12px;
  color: #f87171;
  letter-spacing: 0.01em;
  display: none;
}

.input-error.show {
  display: block;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  padding: 0;
  transition: color 0.18s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--text-bright);
  outline: none;
}

.password-toggle[aria-pressed="true"] {
  color: var(--text-bright);
}

.password-toggle-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.password-toggle .icon-eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-open {
  display: inline-flex;
}

.password-toggle[aria-pressed="true"] .icon-eye-closed {
  display: none;
}

.input-shell input::placeholder {
  color: rgba(205, 212, 236, 0.55);
}

.input-shell input:focus {
  outline: none;
  border-color: rgba(var(--brand-primary-rgb), 0.85);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.2);
}

.primary-button {
  height: 50px;
  border-radius: 999px;
  border: none;
  background-image: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 16px 34px rgba(var(--brand-primary-rgb), 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(var(--brand-primary-rgb), 0.35);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: progress;
  box-shadow: none;
  transform: none;
}

.auth-error {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(244, 63, 94, 0.38);
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  font-size: 13px;
}

.auth-error.show {
  display: block;
}

.auth-reset {
  margin-top: -6px;
}

.auth-reset__toggle {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline dotted rgba(255, 255, 255, 0.32);
  cursor: pointer;
  padding: 0;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.auth-reset__toggle:hover,
.auth-reset__toggle:focus-visible {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.auth-reset-modal[hidden] {
  display: none;
}

.auth-reset-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.auth-reset-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 13, 0.82);
  backdrop-filter: blur(4px);
}

.auth-reset-modal__card {
  position: relative;
  width: min(440px, calc(100% - 32px));
  border-radius: 28px;
  padding: 32px;
  background: linear-gradient(145deg, rgba(26, 50, 118, 0.88), rgba(3, 6, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(1, 2, 13, 0.75);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: authResetIn 180ms ease-out;
}

.auth-reset-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.auth-reset-modal__close:hover,
.auth-reset-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
  outline: none;
}

.auth-reset-modal__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 32px;
}

.auth-reset-modal__eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.auth-reset-modal__header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
}

.auth-reset__copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(226, 233, 255, 0.85);
}

.auth-reset__form {
  display: grid;
  gap: 14px;
}

.auth-reset__form .primary-button {
  width: 100%;
}

.auth-reset__status {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.auth-reset__status[data-state="error"] {
  color: #fda4af;
}

.auth-reset__status[data-state="success"] {
  color: #a7f3d0;
}

.reset-success {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reset-success .primary-button {
  width: 100%;
  justify-content: center;
}

@keyframes authResetIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body[data-reset-open="true"] {
  overflow: hidden;
}

.auth-social {
  margin-top: 0px;
  display: grid;
  gap: 12px;
}

.social-button {
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 10, 20, 0.78);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.social-button:hover,
.social-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 26px rgba(var(--brand-primary-rgb), 0.24);
  transform: translateY(-1px);
  outline: none;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.social-icon.google {
  background: none;
}

.auth-footer {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.auth-footer a {
  color: var(--accent-b);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ===== Right preview panel ===== */
.vsl-preview-wrap {
  --bg: #0b0c10;
  --panel: #11131a;
  --glass: rgba(12, 16, 22, 0.66);
  --txt: #eaeaf0;
  --muted: #9aa0a6;
  --demo-brand: #6c63ff;
  --demo-brand-rgb: 108, 99, 255;
  --c1: rgba(var(--demo-brand-rgb), 0.32);
  --c2: var(--demo-brand);
  --c3: rgba(var(--demo-brand-rgb), 0.5);
  --demo-shadow: 0.14;
  --demo-radius: 32px;
  font-family: "Inter", "Poppins", ui-sans-serif, system-ui;
  color: var(--txt);
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  z-index: 2;
}

.vsl-device {
  position: relative;
  width: 486px;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 11px 15px;
  margin-top: -60px;
  border-radius: 24px;
  background: rgba(7, 9, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(var(--brand-primary-rgb), 0.12) inset,
    0 12px 42px rgba(var(--demo-brand-rgb), var(--demo-shadow)),
    0 24px 66px rgba(var(--brand-primary-2-rgb), 0.2);
}

.vsl-device__chrome {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.vsl-device__chrome .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.vsl-device__chrome .pill {
  height: 10px;
  width: 120px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.vsl-video {
  position: relative;
  border-radius: calc(var(--demo-radius) + 4px);
  background: linear-gradient(160deg, #0f1622, #111c28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 24px 46px rgba(var(--demo-brand-rgb), var(--demo-shadow));
}

.vsl-video__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--demo-radius, 24px);
  overflow: hidden;
  background:
    radial-gradient(900px 300px at -10% -10%, rgba(var(--brand-primary-rgb), 0.24), transparent 55%),
    radial-gradient(900px 300px at 120% 120%, rgba(var(--brand-primary-2-rgb), 0.16), transparent 55%),
    url("/img/auth-preview.jpg") center/cover no-repeat;
  filter: saturate(0.92) brightness(0.92);
}

.vsl-video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #04050d;
}

.vsl-overlay {
  opacity: 0;
  transform: translateY(12px);
  position: absolute;
  top: 9%;
  bottom: 25%;
  left: 12%;
  right: 12%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 26px;
  border-radius: 22px;
  background: linear-gradient(182deg, rgba(var(--demo-brand-rgb), 0.7), rgba(9, 14, 28, 0.83));
  border: 1px solid rgba(var(--demo-brand-rgb), 0.32);
  box-shadow: 0 18px 46px rgba(var(--demo-brand-rgb), var(--demo-shadow)),
    inset 0 0 22px rgba(12, 16, 22, 0.6);
  backdrop-filter: blur(6px);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vsl-overlay:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(var(--demo-brand-rgb), 0.22), 0 0 40px rgba(var(--demo-brand-rgb), 0.18),
    inset 0 0 24px rgba(12, 16, 22, 0.7);
}

.vsl-overlay.is-hidden {
  display: none;
  opacity: 0;
  animation: none !important;
}

.vsl-overlay.overlay-intro {
  animation: overlayIntro 0.65s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.vsl-overlay.mode-small {
  top: 8%;
  bottom: auto;
  left: 6%;
  right: auto;
  padding: 12px 18px 12px 16px;
  min-width: 48%;
  max-width: 340px;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  background: linear-gradient(128deg, rgba(var(--demo-brand-rgb), 0.68), rgba(9, 14, 28, 0.82));
  box-shadow: 0 16px 38px rgba(var(--demo-brand-rgb), var(--demo-shadow));
}

.vsl-overlay__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.vsl-overlay.mode-small .vsl-overlay__text {
  text-align: left;
  gap: 3px;
  white-space: normal;
}

.vsl-overlay.mode-small .vsl-overlay__headline {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vsl-overlay.mode-small .vsl-overlay__sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.76);
  text-transform: uppercase;
}

.vsl-overlay__icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.vsl-overlay.mode-small .vsl-overlay__icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  background: rgba(9, 14, 28, 0.4);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.vsl-overlay.mode-small .vsl-overlay__icon svg {
  width: 18px;
  height: 18px;
}

.vsl-overlay__icon .ring,
.vsl-overlay__icon .ring2 {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(var(--demo-brand-rgb), 0.42);
  opacity: 0;
  animation: vxPulse 2s infinite ease-out;
}

.vsl-overlay.mode-small .vsl-overlay__icon .ring,
.vsl-overlay.mode-small .vsl-overlay__icon .ring2 {
  border-color: rgba(var(--demo-brand-rgb), 0.34);
  inset: -6px;
}

.vsl-overlay__icon .ring2 {
  animation-delay: 1s;
}

@keyframes vxPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

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

.vsl-overlay__headline {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vsl-overlay__sub {
  color: rgba(234, 236, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
}

.vsl-controls {
  padding: 10px 12px 12px;
}

.vsl-controls .progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: visible;
  margin-bottom: 8px;
}

.vsl-controls .progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c2), var(--c1));
}

.vsl-controls .buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vsl-controls .btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 255, 0.9);
  box-shadow: 0 10px 16px rgba(var(--demo-brand-rgb), calc(var(--demo-shadow) * 0.75));
}

.vsl-controls .btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.vsl-controls .tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 247, 255, 0.9);
  font-size: 12px;
}

.preview-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.preview-logo img {
  display: block;
  height: 18px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(5, 14, 40, 0.45));
}

.preview-tag {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 247, 255, 0.7);
}

.vsl-sidecard {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(9, 11, 20, 0.78);
  padding: 12px;
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.05);
}

.group {
  padding: 10px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.group:last-child {
  border-bottom: 0;
}

.group__title {
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
}

.row--input {
  align-items: center;
}

.row--inline {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.row--inline .toggle {
  justify-self: flex-end;
}

.row--slider {
  grid-template-columns: auto 1fr auto;
  gap: 12px;
}

.label {
  color: var(--muted);
  font-size: 13px;
}

.value {
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.value--preview {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
}

.vsl-preview-wrap.is-local-theme [data-preview-apply] {
  color: #facc15;
}

.input-stack {
  display: grid;
  gap: 6px;
}

.control-input,
.control-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 10, 20, 0.78);
  color: rgba(244, 247, 255, 0.86);
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.control-input {
  height: 40px;
  padding: 0 18px;
}

.control-textarea {
  min-height: 40px;
  height: 40px;
  padding: 10px 18px;
  line-height: 1.4;
  resize: none;
}

.control-input:focus,
.control-textarea:focus,
.color-field input[type="color"]:focus {
  outline: none;
  border-color: rgba(var(--demo-brand-rgb), 0.55);
  box-shadow: 0 0 0 2px rgba(var(--demo-brand-rgb), 0.28);
}

.color-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.color-field input[type="color"] {
  appearance: none;
  width: 0;
  height: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.color-chip {
  flex-shrink: 0;
  width: 128px;
  height: 32px;
  border-radius: 999px;
  background: var(--sw, var(--demo-brand));
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(var(--demo-brand-rgb), var(--demo-shadow));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.color-chip:focus,
.color-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(var(--demo-brand-rgb), 0.38);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.color-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 32px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233, 236, 255, 0.74);
  font-family: "Roboto Mono", "Menlo", "Consolas", "Courier New", monospace;
}

.swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--sw, var(--brand-primary));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.toggle input {
  display: none;
}

.toggle span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cfd8e3;
  transition: transform 0.2s ease;
}

.toggle input:checked + span {
  background: linear-gradient(135deg, var(--demo-brand), rgba(var(--demo-brand-rgb), 0.6));
  box-shadow: 0 0 16px rgba(var(--demo-brand-rgb), var(--demo-shadow));
}

.toggle input:checked + span::after {
  transform: translateX(20px);
  background: #fff;
}

.slider {
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--c2), var(--c1));
  border: none;
}

.segmented {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.seg {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(var(--demo-brand-rgb), 0.08);
  border: 1px solid rgba(var(--demo-brand-rgb), 0.12);
  color: var(--txt);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.seg.active {
  background: linear-gradient(135deg, var(--demo-brand), rgba(var(--demo-brand-rgb), 0.7));
  border-color: rgba(var(--demo-brand-rgb), 0.45);
  box-shadow: 0 12px 22px rgba(var(--demo-brand-rgb), var(--demo-shadow));
  color: #fff;
}

.seg[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 1080px) {
  body {
    padding: 48px 24px 56px;
  }

  .auth-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 52px 40px 64px;
  }

  .auth-content {
    text-align: center;
    align-items: center;
  }

  .auth-header-bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .auth-header-link {
    order: 2;
  }

  .auth-lede {
    max-width: 420px;
  }

  .auth-art {
    order: -1;
  }
}

@media (max-width: 720px) {
  body {
    padding: 36px 16px 48px;
  }

  .auth-container {
    padding: 40px 24px 48px;
    gap: 36px;
  }

  .auth-header-link {
    align-self: center;
    white-space: normal;
    text-align: center;
  }
}

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

.owner-login__logo-link {
  display: inline-flex;
  justify-content: center;
}
