/* Ma King Insight — sign-in page in the Option A look (Dev).
   Presentation only: same form, fields, buttons and scripts as before. */
body.auth-page {
  display: block;
  min-height: 100vh;
  padding: 0 0 max(28px, env(safe-area-inset-bottom));
  background: #f3f6f8;
  color: #102f4c;
}
body.auth-page .auth-shell { width: 100%; max-width: none; }

/* Navy top bar with the navy-friendly logo. */
body.auth-page .auth-brand {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0 0 24px !important;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  background: #0f2a44;
  box-shadow: 0 2px 14px rgba(15, 42, 68, .18);
}
body.auth-page .auth-brand-logo {
  content: url("ma-king-insight-logo-on-navy.png?v=20261109.dev-logo-outline2");
  width: auto !important;
  height: 64px !important;
  max-width: 80vw;
}

body.auth-page .auth-card {
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 20px;
  border: 1px solid #dde6ea;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(16, 47, 76, .08);
}
body.auth-page .auth-card h1 { color: #102f4c; font-size: 30px; letter-spacing: -.02em; }
body.auth-page .auth-card .eyebrow { color: #0b7082; font-weight: 800; letter-spacing: .1em; }
body.auth-page .auth-card > p:not(.eyebrow, .auth-message) { color: #536a79; font-size: 15px; }

/* Language: gold pill for the active language. */
body.auth-page .auth-language {
  display: inline-flex;
  width: max-content !important;
  max-width: 100%;
  padding: 3px;
  border: 1px solid #cdd9df;
  border-radius: 999px;
  background: #ffffff;
}
body.auth-page .auth-language button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #33506a;
  font-weight: 600;
}
body.auth-page .auth-language button[aria-pressed="true"] { background: #f6c544; color: #0f2a44; font-weight: 800; }

body.auth-page .segmented-control { border: 0; border-radius: 12px; background: #e6eef1; padding: 4px; }
body.auth-page .segmented-control button { min-height: 44px; border-radius: 9px; color: #536a79; font-size: 15px; }
body.auth-page .segmented-control button[aria-selected="true"] { background: #ffffff; color: #102f4c; font-weight: 700; box-shadow: 0 1px 4px rgba(16, 47, 76, .12); }

/* 16px inputs stop iPhone from zooming into the form. */
body.auth-page .auth-card label > span { color: #102f4c; font-weight: 700; font-size: 14px; }
body.auth-page .auth-card input {
  min-height: 48px;
  border: 1px solid #cdd9df;
  border-radius: 10px;
  background: #ffffff;
  font-size: 16px;
}
body.auth-page .auth-card input:focus { border-color: #0b7082; outline: 3px solid rgba(11, 112, 130, .18); }
body.auth-page .auth-card .primary-button,
body.auth-page .auth-card .auth-submit {
  min-height: 50px;
  border-color: #0f2a44;
  border-radius: 12px;
  background: #0f2a44;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}
body.auth-page .auth-card .primary-button:hover { border-color: #16375a; background: #16375a; }
body.auth-page .auth-card button:focus-visible { outline: 3px solid #f6c544; outline-offset: 2px; }
body.auth-page .auth-footnote { color: #536a79; text-align: center; }
