/* The split shell used by the sign-in page and the home page: the brand panel
   on the left (filled by /shared/brand-panel.js) stays the same on both pages,
   the right side holds the sign-in card or the tool chooser.
   Below 1024px the panel is gone and the right side fills the screen. */

.split-grid { display: grid; min-height: 100vh; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); }

/* ── Left: the brand gradient with what lives here, in a few words ── */
.brand-panel {
  display: none;
  flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 48px; min-width: 0;
  background: var(--brand-gradient); color: var(--on-brand);
}

.brand-top { display: flex; align-items: center; gap: 12px; }
.brand-tile {
  display: inline-flex; width: 44px; height: 44px; padding: 6px; flex: none;
  border-radius: 10px; background: var(--surface);
}
.brand-tile img { width: 100%; height: 100%; display: block; }
.brand-name { font-size: var(--fs-title); font-weight: 600; line-height: 1.25; color: var(--on-brand); }
.brand-tag { margin-top: 1px; font-size: var(--fs-dense); line-height: 1.3; color: var(--on-brand-2); }

.brand-mid { display: grid; gap: 28px; max-width: 460px; }
.brand-headline {
  font-size: var(--fs-display); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em;
  color: var(--on-brand); max-width: 20ch;
}
.brand-headline span { display: block; }
.brand-lede { margin: -10px 0 0; max-width: 40ch; font-size: 15px; line-height: 1.5; color: var(--on-brand-2); }
.brand-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.brand-tools li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.brand-tools .tool-tile {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none;
  border-radius: 8px; background: rgba(255, 255, 255, 0.14); color: var(--on-brand);
}
.brand-tools .tool-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; font-size: var(--fs-title); font-weight: 600; line-height: 1.25; color: var(--on-brand); }
.brand-tools .tool-blurb { margin-top: 4px; font-size: var(--fs-body); line-height: 1.5; color: var(--on-brand-2); }
.brand-tools .tool-soon {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--radius-pill);
  font-size: var(--fs-micro); font-weight: 500; line-height: 16px; color: var(--on-brand);
  background: rgba(255, 255, 255, 0.14);
}
.brand-foot { font-size: var(--fs-caption); color: var(--on-brand-2); }

/* ── Right side: a column, so a brand row and a card stack and both centre ── */
.split-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; background: var(--plane); }

/* Brand row for screens without the panel. Sits above the card. */
.split-mobile-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.split-mobile-brand img { width: 32px; height: 32px; display: block; }
.split-mobile-brand span { font-size: var(--fs-title); font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }

/* Sign in: the dashboard's login card. */
.login-box {
  width: 100%; max-width: 384px; padding: 32px;
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.login-logo { display: block; height: 56px; width: auto; margin: 0 auto 16px; }
.login-box h1, .login-title { font-size: var(--fs-title); font-weight: 600; line-height: 1.25; text-align: center; color: var(--ink); }
.login-sub { margin-top: 4px; font-size: var(--fs-caption); color: var(--ink-3); text-align: center; }
.login-box .note { margin-top: 20px; }
.login-form { display: grid; gap: 16px; margin-top: 24px; }
.login-form .btn { margin-top: 4px; }
.login-help { margin-top: 20px; font-size: var(--fs-caption); color: var(--ink-3); text-align: center; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 40px; }
.pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: none; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer;
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.pw-toggle:hover { color: var(--ink); background: var(--hair); }

@media (max-width: 480px) {
  .split-main { padding: 24px 16px; }
  .login-box { padding: 24px 20px; }
}

@media (min-width: 1024px) {
  .split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .brand-panel { display: flex; }
  .split-mobile-brand { display: none; }
}
