:root {
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 38px 22px; background: #fff; }
.login-wrap { width: min(1030px, 100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; color: #18181b; font-size: 19px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { position: relative; display: block; width: 30px; height: 30px; overflow: hidden; border-radius: 10px; background: #1456f0; }
.brand-mark span { position: absolute; width: 27px; height: 14px; left: 4px; top: 5px; border-radius: 80% 10% 80% 10%; transform: rotate(-36deg); background: #a9c7ff; }
.login-card { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 530px; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 24px; background: #fff; box-shadow: 0 14px 46px rgba(44, 30, 116, .10), 0 4px 12px rgba(0, 0, 0, .04); }
.map-story { position: relative; overflow: hidden; min-height: 530px; padding: 48px; color: #18181b; background: linear-gradient(150deg, #e7efff 0%, #f4eafe 60%, #fff0f8 100%); }
.eyebrow { display: block; color: #45515e; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.map-story .eyebrow { color: #345b9c; }
h1, h2, p { margin: 0; }
h1 { position: relative; z-index: 1; margin-top: 20px; font-family: Outfit, "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(30px, 3.6vw, 45px); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
.map-story > p { position: relative; z-index: 1; max-width: 340px; margin-top: 19px; color: #45515e; font-size: 15px; line-height: 1.5; }
.map-illustration { position: absolute; inset: auto 0 0; height: 250px; overflow: hidden; }
.map-grid { position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(#9db5e4 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(transparent, #000 22%); }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #8b9cd3; stroke-width: 1.6; opacity: .9; }
.map-point { position: absolute; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #cad6f0; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(44, 30, 116, .12); }
.map-point span { width: 9px; height: 9px; border-radius: 3px; background: #4f75ef; }
.map-point-one { left: 13%; top: 56%; } .map-point-two { left: 46%; top: 24%; background: #1456f0; border-color: #1456f0; } .map-point-two span { background: #fff; } .map-point-three { left: 78%; top: 52%; } .map-point-three span { background: #c366c5; } .map-point-four { left: 61%; top: 78%; width: 30px; height: 30px; }
.map-caption { position: absolute; left: 48px; bottom: 22px; color: #66758a; font-size: 11px; letter-spacing: .02em; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 60px clamp(32px, 5vw, 68px); }
.login-heading h2 { margin-top: 12px; color: #18181b; font-family: Outfit, "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(25px, 2.6vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.login-heading p { margin-top: 11px; color: #5f6773; font-size: 14px; line-height: 1.5; }
form { display: grid; margin-top: 32px; }
label { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
input { width: 100%; height: 48px; margin: 0 0 20px; padding: 0 13px; border: 1px solid #d7dbe4; border-radius: 10px; background: #fff; color: #18181b; font: inherit; font-size: 15px; }
input:hover { border-color: #aab9d6; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #7fa8ff; outline-offset: 3px; }
button { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border: 0; border-radius: 9px; background: #181e25; color: #fff; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
button:hover { background: #303b49; }
button:disabled { opacity: .7; cursor: wait; }
button span { font-size: 20px; font-weight: 400; }
.login-error, .no-script { margin: -3px 0 14px; color: #a52f38; font-size: 13px; line-height: 1.4; }
.login-error[hidden] { display: none; }
.no-script { margin-top: 12px; }
.login-note { margin-top: 24px; color: #6f7885; font-size: 12px; }
.login-note span { margin-right: 5px; color: #1456f0; }
.signup-toggle { margin-top: 12px; min-height: 36px; padding: 6px 2px; border: 0; background: transparent; color: #1456f0; font: inherit; font-size: 13px; font-weight: 600; justify-content: flex-start; cursor: pointer; }
.signup-toggle:hover { background: transparent; color: #0e3fb3; text-decoration: underline; }
.signup-toggle[hidden] { display: none; }
#display-name-wrap[hidden], .signup-field-wrap[hidden] { display: none; }
#display-name-wrap, .signup-field-wrap { display: grid; }
.invite-banner { margin-top: 16px; padding: 11px 14px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; color: #1e3a8a; font-size: 13px; line-height: 1.45; }
.invite-banner--error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.invite-banner[hidden] { display: none; }
.form-panel { grid-column: 1 / -1; padding: 44px clamp(26px, 5vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.form-panel p, .form-panel li { color: #45515e; font-size: 14px; line-height: 1.55; }
.form-panel ul { margin: 4px 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.form-panel code { padding: 2px 6px; border-radius: 6px; background: #f1f5f9; color: #0f172a; font-size: 12.5px; }
.oauth-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.primary-btn { background: #1456f0; color: #fff; justify-content: center; }
.primary-btn:hover { background: #0e3fb3; }
.secondary-btn { background: #f1f5f9; color: #18181b; justify-content: center; }
.secondary-btn:hover { background: #e2e8f0; }
.footer { margin: 20px 0 0; color: #737b86; font-size: 11px; }
@media (max-width: 700px) {
  .login-page { display: block; padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .brand { margin-bottom: 20px; }
  .login-card { display: flex; flex-direction: column; min-height: 0; border-radius: 20px; }
  .map-story { min-height: 0; padding: 26px 25px 28px; }
  .map-story h1 { margin-top: 13px; font-size: 30px; }
  .map-story > p { margin-top: 12px; font-size: 13px; }
  .map-illustration { display: none; }
  .login-panel { padding: 32px 25px 30px; }
  .login-heading h2 { font-size: 26px; }
  form { margin-top: 25px; }
  input { font-size: 16px; }
  .login-note { margin-top: 23px; }
}
