*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0c0e12;
  --ink2: #3a3f4a;
  --ink3: #7a8090;
  --surface: #f7f6f2;
  --card: #ffffff;
  --accent: #1a56e8;
  --accent2: #0e3db8;
  --accent-glow: rgba(26, 86, 232, 0.18);
  --border: rgba(0, 0, 0, 0.09);
  --border2: rgba(0, 0, 0, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
}

html,
body {
  height: 100%;
  /* font-family: "DM Sans", sans-serif; */
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}

.page {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  height: 100vh;
}

/* Left */
.left {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
}

svg{
    width: 15px;
}

.left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 80%,
      rgba(26, 86, 232, 0.35) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 80% 20%,
      rgba(100, 60, 220, 0.2) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.neural-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}

.left-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.6s ease both;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-name span {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.left-hero {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(26, 86, 232, 0.22);
  border: 1px solid rgba(26, 86, 232, 0.35);
  border-radius: 100px;
  padding: 4px 12px 4px 7px;
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #4f90ff;
  border-radius: 50%;
  animation: blink 2.4s ease-in-out infinite;
}

.hero-eyebrow span {
  font-size: 11px;
  font-weight: 500;
  color: #93b8ff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: #4f90ff;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  max-width: 380px;
  font-weight: 300;
}

.stat-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.stat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.stat-num {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* Right */
.right {
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 52px;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--border);
}

.right::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(26, 86, 232, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.form-header {
  margin-bottom: 32px;
  animation: fadeUp 0.5s 0.15s ease both;
}

.form-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent);
  color: #fff;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 50px;
  gap: 3px;
}

.form-tag svg {
  width: 10px;
}

.form-title {
  font-family: "Syne", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.form-sub {
  font-size: 14px;
  color: var(--ink3);
  font-weight: 300;
}

.role-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 26px;
  animation: fadeUp 0.5s 0.2s ease both;
}

.role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: "DM Sans", sans-serif;
}

.role-btn:hover {
  border-color: var(--accent);
  background: #e8f0fe;
}

.role-btn.active {
  border-color: var(--accent);
  background: #e8f0fe;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.role-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.role-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink2);
  letter-spacing: 0.02em;
}

.role-btn.active .role-label {
  color: var(--accent);
}

.form-body {
  animation: fadeUp 0.5s 0.25s ease both;
}

.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.field-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink3);
  pointer-events: none;
  display: flex;
}

.field-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.field-input::placeholder {
  color: var(--ink3);
  font-weight: 300;
}

.field-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink3);
  display: flex;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.pass-toggle:hover {
  color: var(--ink);
}

.btn-submit {
  width: 100%;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s,
    transform 0.1s;
}

.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.btn-submit:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.form-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeUp 0.5s 0.3s ease both;
}

.footer-link {
  font-size: 12.5px;
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--accent);
}

.ai-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 5px 12px;
  animation: fadeUp 0.5s 0.4s ease both;
  white-space: nowrap;
}

.ai-badge-dot {
  width: 5px;
  height: 5px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

.ai-badge span {
  font-size: 10.5px;
  color: var(--ink3);
  letter-spacing: 0.03em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
  }

  .left {
    display: none;
  }

  .right {
    padding: 40px 28px;
  }
}

#installHint {
  display: none;
}
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.feat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.feat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(79, 144, 255, 0.35);
}

.feat-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(26, 86, 232, 0.22);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feat-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.1px;
}

.feat-desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  line-height: 1.4;
}
/* Toast CSS */
.toast {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  z-index: 100;
  transition:
    top 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  pointer-events: all;
}

.toast.error {
  background: #fff5f5;
  border-color: rgba(220, 53, 53, 0.25);
}

.toast.success {
  background: #f0faf5;
  border-color: rgba(34, 197, 94, 0.3);
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-size: 11px;
  margin-left: 10px;
}

.toast.error .toast-icon {
  background: rgba(220, 53, 53, 0.12);
  color: #dc3535;
}

.toast.success .toast-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
}

.toast.error .toast-title {
  color: #b91c1c;
}
.toast.success .toast-title {
  color: #15803d;
}

.toast-msg {
  font-size: 12.5px;
  color: var(--ink3);
  font-weight: 300;
  line-height: 1.45;
}

/* InstallHint Modal */
/* ── Install hint bottom sheet ── */
#installHint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: flex-end;
  justify-content: center;
}

#installHint.open {
  display: flex;
}

#installHintBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.55);
  animation: backdropIn 0.25s ease both;
}

@keyframes backdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.install-sheet {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 12px 24px 36px;
  animation: sheetUp 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.install-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.install-sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.install-sheet-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.install-sheet-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.install-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.install-sheet-sub {
  font-size: 12px;
  color: var(--ink3);
  font-weight: 300;
}

.install-sheet-close {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink3);
  flex-shrink: 0;
  transition:
    background 0.15s,
    color 0.15s;
}

.install-sheet-close:hover {
  background: var(--border);
  color: var(--ink);
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.install-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.install-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.install-step-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.1px;
}

.install-step-hint {
  font-size: 11.5px;
  color: var(--ink3);
  font-weight: 300;
}

.install-step-icon {
  width: 36px;
  height: 36px;
  background: #e8f0fe;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-step-divider {
  height: 1px;
  background: var(--border);
  margin-left: 40px;
}

.install-sheet-footer {
  display: flex;
  justify-content: center;
}

.install-sheet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 5px 14px;
}

.install-sheet-badge span {
  font-size: 11px;
  color: var(--ink3);
  letter-spacing: 0.02em;
}

/* ── Install tabs ── */
.install-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 6px;
}

.install-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink3);
  cursor: pointer;
  transition: all 0.18s ease;
}

.install-tab:hover {
  color: var(--ink2);
}

.install-tab.active {
  background: var(--card);
  color: var(--accent);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.install-tab svg {
  flex-shrink: 0;
}
