/* Sign-in presentation only. Never change the signed-in application's tokens. */
#loginScreen {
  --color-primary: #244e3b;
  --color-primary-dark: #183a2a;
  --color-text-primary: #18342a;
  --color-text-muted: #617168;
  --color-text-dim: #617168;
  --color-bg-primary: #f7f8f4;
  --color-border: #d8e0d7;
  --font-heading: "Manrope", sans-serif;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  background: #f7f8f4;
  color: #18342a;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#loginScreen.hidden { display: none; }
#loginScreen .login-layout { display: grid; grid-template-columns: 1.06fr 1fr; max-width: 1480px; min-height: calc(100svh - 48px); margin: auto; }
#loginScreen .login-story { display: flex; flex-direction: column; padding: clamp(32px, 4vw, 64px); background: #10251e; border-radius: 18px; color: #f7f8f4; min-width: 0; }
#loginScreen .login-brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; font-weight: 700; font-size: 18px; letter-spacing: -.035em; color: #f7f8f4; text-decoration: none; }
#loginScreen .login-brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: #d1f577; color: #10251e; border-radius: 11px; flex-shrink: 0; }
#loginScreen .login-story-copy { margin: auto 0; padding: 48px 0 34px; }
#loginScreen .login-eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .13em; line-height: 1.5; }
#loginScreen .login-story .login-eyebrow { color: #c7dda2; }
#loginScreen #loginStoryTitle { font-family: "Manrope", sans-serif; font-size: clamp(36px, 4.2vw, 62px); font-weight: 500; letter-spacing: -.065em; line-height: 1.09; margin: 0 0 24px; color: #f7f8f4; }
#loginScreen em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
#loginScreen #loginStoryTitle em { color: #d1f577; white-space: nowrap; }
#loginScreen .login-story-copy > p:last-child { color: #b8cdc2; max-width: 420px; font-size: 16px; line-height: 1.7; margin: 0; }
#loginScreen .login-life { position: relative; min-height: 245px; margin: 0; border-radius: 12px; overflow: hidden; background: #203b2d; }
#loginScreen .login-life img { display: block; width: 100%; height: 285px; object-fit: cover; object-position: 52% 38%; }
#loginScreen .login-life::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 22, 14, .9), transparent 80%); pointer-events: none; }
#loginScreen .login-life figcaption { position: absolute; left: 26px; right: 24px; bottom: 24px; z-index: 1; }
#loginScreen .login-life figcaption > span { display: block; font-size: 12px; letter-spacing: .1em; margin-bottom: 10px; color: #d1f577; }
#loginScreen .login-life strong { display: block; font-family: "Manrope", sans-serif; font-weight: 500; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.035em; }
#loginScreen .login-connected { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; font-size: 13px; color: #a4cbb8; }
#loginScreen .login-connected > strong { margin-left: auto; color: #d1f577; font-weight: 500; }
#loginScreen .login-entry { display: flex; flex-direction: column; min-width: 0; padding: 22px clamp(24px, 5vw, 80px) 10px; }
#loginScreen .login-home { align-self: flex-end; color: #617168; font-size: 14px; text-decoration: none; }
#loginScreen .login-home span { margin-right: 8px; }
#loginScreen .login-card { width: 100%; max-width: 410px; margin: auto; padding: 64px 0; }
#loginScreen .login-intro { margin-bottom: 36px; }
#loginScreen .login-intro .login-eyebrow { color: #5b7156; margin-bottom: 16px; }
#loginScreen #loginTitle { margin: 0 0 12px; font: 500 clamp(34px, 3.1vw, 45px)/1.13 "Manrope", sans-serif; letter-spacing: -.06em; }
#loginScreen .login-intro > p:last-child { font-size: 16px; color: #617168; margin: 0; line-height: 1.6; }
#loginScreen .form-label { color: #294236; font-family: inherit; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; margin-bottom: 9px; }
#loginScreen .form-input { min-height: 54px; background: #fff; border: 1px solid #d8e0d7; border-radius: 8px; font: 400 16px/1.5 "DM Sans", sans-serif; color: #18342a; box-shadow: 0 2px 3px rgba(16, 37, 30, .025); }
#loginScreen .form-input::placeholder { color: #617168; opacity: 1; }
#loginScreen .form-input:focus { border-color: #497658; box-shadow: 0 0 0 3px rgba(73, 118, 88, .15); }
#loginScreen .form-input.error { border-color: #dc2626; }
#loginScreen .form-error { font-size: 14px; }
#loginScreen .login-options { gap: 12px; flex-wrap: wrap; padding-top: 2px; }
#loginScreen .login-options label { font: 400 14px/1.4 "DM Sans", sans-serif; letter-spacing: 0; text-transform: none; }
#loginScreen #togglePassword { min-width: 44px; }
#loginScreen #loginButton { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; border: 1px solid #10251e; background: #10251e; color: #d1f577; border-radius: 8px; box-shadow: none; font: 600 16px/1.4 "DM Sans", sans-serif; text-transform: none; letter-spacing: 0; transition: background .15s ease, transform .15s ease; }
#loginScreen #loginButton:hover:not(:disabled) { background: #244e3b; transform: translateY(-1px); }
#loginScreen #loginButton:disabled { opacity: .65; cursor: wait; }
#loginScreen .login-submit-arrow { font-size: 23px; line-height: 1; }
#loginScreen #loginSpinner { border-top-color: #d1f577; }
#loginScreen .login-register { padding-top: 28px; margin-top: 28px; border-top: 1px solid #dce3da; }
#loginScreen .login-register a { display: block; margin-top: 6px; }
#loginScreen a:hover { text-decoration: underline; text-underline-offset: 4px; }
#loginScreen :is(a, button, input):focus-visible { outline: 3px solid #6b8d45; outline-offset: 4px; }
#loginScreen .login-story a:focus-visible { outline-color: #d1f577; }
#loginScreen .login-footer { text-align: center; font-size: 12px; line-height: 1.6; }
@media (min-width: 900px) and (max-height: 820px) {
  #loginScreen .login-story { padding: 32px; }
  #loginScreen .login-story-copy { padding: 32px 0 26px; }
  #loginScreen .login-life img { height: 225px; }
  #loginScreen .login-life { min-height: 225px; }
  #loginScreen .login-card { padding: 40px 0; }
}
@media (max-width: 899px) {
  #loginScreen { padding: 0; }
  #loginScreen .login-layout { grid-template-columns: 1fr; min-height: 100svh; }
  #loginScreen .login-story { display: none; }
  #loginScreen .login-entry { min-height: 100svh; padding: 28px 24px 22px; }
  #loginScreen .login-home { align-self: flex-start; }
  #loginScreen .login-card { padding: 48px 0; }
  #loginScreen #loginTitle { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  #loginScreen #loginButton { transition: none; }
  #loginScreen #loginButton:hover:not(:disabled) { transform: none; }
}
/* The shared app has !important phone rules; override only inside sign-in. */
@media (max-width: 575px) {
  #loginScreen #loginTitle { font-size: 40px !important; }
  #loginScreen #loginButton { min-height: 54px !important; font-size: 16px !important; }
  #loginScreen .form-input { min-height: 54px !important; }
  #loginScreen #rememberMe { min-height: 16px !important; }
}
