/* Shared BeSmart presentation; the editor and note content keep native behavior. */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #e2dcff; color: #201a3d; }
:focus-visible { outline: 2px solid #7564f4; outline-offset: 3px; }
.icon-rail-logo {
  object-fit: contain;
  background: #fff;
  padding: 5px;
  border-radius: 12px;
}
:root[data-theme="besmart"] .icon-rail {
  background: #201a3d;
  --text-primary: #fff;
  --text-secondary: #c9c2e7;
  --text-tertiary: #b3aaca;
  --bg-hover: #383050;
  --bg-active: #4934ef;
  --border-primary: #383050;
}
:root[data-theme="besmart"] .icon-rail button:focus-visible {
  outline-color: #b9adff;
}

/* Login */
.brand-login {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  background: #faf9fe;
  color: #201a3d;
}
.brand-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 100svh;
  padding: clamp(32px, 5vw, 80px);
  background: #201a3d;
  color: #fff;
}
.brand-story::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -340px;
  bottom: -340px;
  border: 1px solid #7564f4;
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgb(117 100 244 / 8%), 0 0 0 130px rgb(117 100 244 / 5%);
  pointer-events: none;
}
.brand-wordmark { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: -.5px; }
.brand-wordmark img { width: 40px; height: 40px; object-fit: contain; background: #fff; padding: 4px; border-radius: 12px; }
.brand-eyebrow { color: #b9adff; font-size: 11px; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; }
.brand-story-main { position: relative; z-index: 1; padding: 60px 0; max-width: 520px; }
.brand-story h2 { margin: 24px 0; font-size: clamp(40px, 4.2vw, 64px); line-height: 1.08; font-weight: 600; letter-spacing: -.055em; }
.brand-story h2 span { color: #b9adff; }
.brand-description { max-width: 350px; font-size: 16px; line-height: 1.8; color: #c9c2e1; }
.brand-story-footer { font-size: 12px; color: #aaa1c4; }
.brand-signin { display: flex; align-items: center; justify-content: center; padding: 48px 28px; }
.brand-login .login-container { width: 100%; max-width: 360px; }
.brand-login .logo { width: 104px; height: 76px; object-fit: contain; margin-bottom: 32px; }
.brand-login h1 { font-size: 30px; font-weight: 650; letter-spacing: -1.1px; margin: 0 0 12px; }
.brand-login .tagline { color: #67617d; line-height: 1.7; font-size: 14px; margin: 0 0 36px; }
.brand-login label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.brand-login input { width: 100%; box-sizing: border-box; border: 1px solid #d4cde8; border-radius: 10px; padding: 15px 16px; font: inherit; font-size: 14px; background: #fff; color: #201a3d; }
.brand-login input:focus { outline: 3px solid #eeebff; border-color: #7564f4; }
.brand-login button { margin-top: 18px; width: 100%; padding: 15px 20px; font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 10px; background: #4934ef; color: #fff; cursor: pointer; transition: background .15s; }
.brand-login button:hover { background: #3824ce; }
.brand-login .error-message { margin-top: 12px; font-size: 13px; color: #b42440; line-height: 1.5; }
.brand-login .footer { margin-top: 32px; font-size: 12px; color: #76708a; line-height: 1.8; }
.brand-login .footer a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .brand-login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .brand-story { min-height: auto; padding: 24px; }
  .brand-story-main, .brand-story-footer { display: none; }
  .brand-signin { padding: 48px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-login button { transition: none; }
}
