/* PlaceMate Auth Pages — Vidyst-inspired Apple-native studio aesthetic */

.pm-auth-body {
  --pm-auth-bg: #ffffff;
  --pm-auth-aside: #f5f5f7;
  --pm-auth-card: #ffffff;
  --pm-auth-input: #f8f8fa;
  --pm-auth-ink: #111111;
  --pm-auth-muted: #6b7280;
  --pm-auth-muted-display: #868b94;
  --pm-auth-line: #e5e7eb;
  --pm-auth-gold: #f5c84c;
  --pm-auth-mint: #cdebd7;
  --pm-auth-pill-bg: #111111;
  --pm-auth-pill-ink: #ffffff;
  background: var(--pm-auth-bg);
  color: var(--pm-auth-ink);
  margin: 0;
}

[data-theme="dark"] .pm-auth-body {
  --pm-auth-bg: #121316;
  --pm-auth-aside: #18191d;
  --pm-auth-card: #121316;
  --pm-auth-input: #1d1f25;
  --pm-auth-ink: #f3f4f6;
  --pm-auth-muted: #9ca3af;
  --pm-auth-muted-display: #9ca3af;
  --pm-auth-line: #2a2d36;
  --pm-auth-pill-bg: #f5c84c;
  --pm-auth-pill-ink: #181408;
}

.pm-auth-symbols {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.pm-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 0.96fr) minmax(0, 1.04fr);
}

/* Left Showcase Panel */
.pm-auth-aside {
  background: var(--pm-auth-aside);
  border-right: 1px solid var(--pm-auth-line);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.pm-auth-aside-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pm-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pm-auth-ink);
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pm-auth-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--pm-auth-gold);
  color: #1f1606;
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 800;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

.pm-auth-home-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--pm-auth-card);
  border: 1px solid var(--pm-auth-line);
  color: var(--pm-auth-ink);
  font-size: 12px;
  font-weight: 600;
}

.pm-auth-home-pill .icon {
  width: 14px;
  height: 14px;
}

.pm-auth-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-auth-muted);
}

.pm-auth-headline {
  margin: 0 0 16px;
  font-family: Manrope, sans-serif;
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--pm-auth-ink);
}

.pm-muted-line {
  color: var(--pm-auth-muted-display);
}

.pm-squircle {
  display: inline-grid;
  place-items: center;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.14em;
  margin-inline: 0.05em;
  border-radius: 0.24em;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.35);
}

.pm-squircle .icon {
  width: 0.56em;
  height: 0.56em;
  stroke-width: 2.1;
}

.pm-squircle.is-gold { background: var(--pm-auth-gold); color: #1d1504; }
.pm-squircle.is-mint { background: var(--pm-auth-mint); color: #133b25; }
.pm-squircle.is-tilted-left { transform: rotate(-6deg); }
.pm-squircle.is-tilted-right { transform: rotate(6deg); }

.pm-auth-aside-copy {
  margin: 0 0 28px;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--pm-auth-muted);
}

/* Dark Studio Snapshot Card in Aside */
.pm-auth-preview {
  max-width: 420px;
  border-radius: 18px;
  background: #141413;
  color: #f4f4f5;
  border: 1px solid #2b2b27;
  box-shadow: 0 22px 48px -28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.pm-auth-preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #2a2a26;
  font-size: 11px;
}

.pm-window-dots {
  display: flex;
  gap: 5px;
}

.pm-window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}
.pm-window-dots span:nth-child(2) { background: #febc2e; }
.pm-window-dots span:nth-child(3) { background: #28c840; }

.pm-preview-title {
  color: #d4d4d8;
  font-weight: 600;
}

.pm-preview-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4ade80;
  font-size: 10px;
  font-weight: 600;
}

.pm-preview-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.pm-auth-preview-rows {
  list-style: none;
  margin: 0;
  padding: 10px 14px 14px;
  display: grid;
  gap: 10px;
}

.pm-auth-preview-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #1e1e1c;
  border: 1px solid #2d2d29;
}

.pm-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pm-row-dot.is-mint { background: #4ade80; }
.pm-row-dot.is-gold { background: #f5c84c; }
.pm-row-dot.is-purple { background: #a78bfa; }

.pm-auth-preview-rows strong {
  display: block;
  font-size: 12px;
  color: #fff;
}

.pm-auth-preview-rows small {
  display: block;
  font-size: 10px;
  color: #a1a1aa;
}

.pm-row-badge {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #292925;
  color: #e4e4e7;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.pm-auth-aside-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--pm-auth-muted);
}

/* Right Main Panel */
.pm-auth-main {
  padding: clamp(20px, 3vw, 36px) clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
}

.pm-auth-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.pm-mobile-brand {
  display: none;
  margin-right: auto;
}

.pm-auth-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--pm-auth-aside);
  border: 1px solid var(--pm-auth-line);
}

.pm-auth-tabs a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-auth-muted);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.pm-auth-tabs a.is-active {
  background: var(--pm-auth-pill-bg);
  color: var(--pm-auth-pill-ink);
}

.pm-theme-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--pm-auth-line);
  background: var(--pm-auth-aside);
  color: var(--pm-auth-ink);
  font-size: 15px;
}

.pm-auth-card-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 28px;
}

.pm-auth-card {
  width: 100%;
  max-width: 430px;
}

.pm-auth-card h1 {
  margin: 0 0 8px;
  font-family: Manrope, sans-serif;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--pm-auth-ink);
}

.pm-auth-card > #auth-content > p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pm-auth-muted);
}

.pm-auth-card .field {
  margin-bottom: 16px;
}

.pm-auth-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-auth-ink);
}

.pm-auth-card input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--pm-auth-line);
  background: var(--pm-auth-input);
  color: var(--pm-auth-ink);
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.pm-auth-card input:focus {
  border-color: var(--pm-auth-ink);
  background: var(--pm-auth-card);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

[data-theme="dark"] .pm-auth-card input:focus {
  box-shadow: 0 0 0 3px rgba(245, 200, 76, 0.2);
}

.pm-password-wrap {
  position: relative;
}

.pm-password-wrap input {
  padding-right: 64px;
}

.pm-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--pm-auth-muted);
  font-size: 11px;
  font-weight: 650;
  padding: 5px 8px;
  border-radius: 8px;
}

.pm-pw-toggle:hover {
  color: var(--pm-auth-ink);
  background: var(--pm-auth-aside);
}

.pm-auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 18px;
}

.pm-auth-forgot-row a {
  color: var(--pm-auth-muted);
  font-size: 12px;
  font-weight: 550;
}

.pm-auth-forgot-row a:hover {
  color: var(--pm-auth-ink);
  text-decoration: underline;
}

.pm-auth-card .btn.primary {
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--pm-auth-pill-bg);
  background: var(--pm-auth-pill-bg);
  color: var(--pm-auth-pill-ink);
  font-size: 14px;
  font-weight: 650;
  transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.pm-auth-card .btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.45);
}

.pm-auth-card .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.pm-auth-invite-banner {
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid #d4b86a;
  background: #fef9e7;
  color: #3f2f08;
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.5;
}

[data-theme="dark"] .pm-auth-invite-banner {
  background: #2b2412;
  border-color: #6b5620;
  color: #fde68a;
}

.pm-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: var(--pm-auth-muted);
  font-size: 11px;
}

.pm-auth-divider::before,
.pm-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pm-auth-line);
}

.pm-google-host {
  display: flex;
  justify-content: center;
}

.pm-auth-card .auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--pm-auth-muted);
}

.pm-auth-card .auth-footer a {
  color: var(--pm-auth-ink);
  font-weight: 650;
}

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

@media (max-width: 920px) {
  .pm-auth-shell {
    grid-template-columns: 1fr;
  }
  .pm-auth-aside {
    display: none;
  }
  .pm-mobile-brand {
    display: inline-flex;
  }
  .pm-auth-topbar {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .pm-auth-card .form-grid {
    grid-template-columns: 1fr;
  }
  .pm-auth-tabs a {
    padding: 6px 10px;
    font-size: 11px;
  }
}
