.login-page {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: #f8f9ff;
  color: #141b2c;
  font-family: var(--sans, "Space Grotesk", sans-serif);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(440px, 1.12fr);
  min-height: 100vh;
}

.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 38px clamp(32px, 5vw, 76px);
  overflow: hidden;
  background: #073fbd;
  color: #fff;
}

.login-intro::after {
  position: absolute;
  right: -180px;
  bottom: 90px;
  width: 440px;
  height: 440px;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  box-shadow: 0 0 0 54px #ffffff0d, 0 0 0 110px #ffffff08;
  content: "";
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.login-intro-copy {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: auto 0;
  padding: 50px 0;
}

.login-eyebrow {
  display: block;
  color: #315dd0;
  font: 700 11px/16px var(--sans, "Space Grotesk", sans-serif);
  letter-spacing: 1.1px;
}

.login-intro .login-eyebrow { color: #c7d7ff; }
.login-intro-copy h1 { max-width: 460px; margin: 18px 0 16px; font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 1.12; letter-spacing: -1.5px; }
.login-intro-copy p { max-width: 410px; margin: 0; color: #d9e3ff; font: 17px/1.7 var(--serif, Sanchez, serif); }
.login-intro-footer { position: relative; z-index: 1; color: #d9e3ff; font: 12px/18px var(--sans, "Space Grotesk", sans-serif); }

.login-form-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 48px 28px 22px;
}

.login-card { width: min(100%, 430px); padding: 22px 0; }
.login-mobile-brand { display: none; }
.login-card > .login-eyebrow { margin-bottom: 12px; text-align: center; font-size: 13px; }
.login-mobile-brand { width: 100%; justify-content: center; color: #141b2c; font-family: var(--sans, "Space Grotesk", sans-serif); font-size: 22px; font-weight: 600; line-height: 28px; text-align: center; }
.login-card h2 { margin: 0; color: #141b2c; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.6px; }
.login-card .login-signin-title { font-size: 18px; line-height: 1.2; letter-spacing: 0; text-align: center; }
.login-description { margin: 11px 0 15px; color: #667085; font: 14px/1.6 var(--serif, Sanchez, serif); }

.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 8px; color: #252b3b; font: 600 15px/20px var(--sans, "Space Grotesk", sans-serif); }
.login-form input:not([type="hidden"]) { box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px; border: 1px solid #dfe3ed; border-radius: 5px; outline: none; background: #fff; color: #141b2c; font: 16px var(--sans, "Space Grotesk", sans-serif); transition: border-color .15s, box-shadow .15s; }
.login-form input:focus { border-color: #4777ef; box-shadow: 0 0 0 3px #1755dc1c; }
.login-form input::placeholder { color: #98a2b3; }
.login-password-field { position: relative; }
.login-password-field input { padding-right: 46px !important; }
.password-visibility-toggle { position: absolute; top: 50%; right: 10px; width: 30px; height: 30px; padding: 5px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 4px; background: transparent; color: #667085; cursor: pointer; }
.password-visibility-toggle:hover { background: #f2f4f7; color: #344054; }
.password-visibility-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.setup-account { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #e6e9f2; border-radius: 5px; background: #fff; }
.setup-account span { color: #667085; font-size: 11px; }
.setup-account strong { color: #344054; font-size: 13px; font-weight: 500; }

.login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; margin-top: 14px; border: 0; border-radius: 5px; background: #0645ce; color: #fff; font: 600 16px var(--sans, "Space Grotesk", sans-serif); cursor: pointer; transition: background .15s, transform .15s; }
.login-submit:hover { background: #0039b5; }
.login-submit:active { transform: translateY(1px); }
.login-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-error { margin: 0 0 18px; padding: 11px 13px; border: 1px solid #fecdca; border-radius: 5px; background: #fff4f2; color: #b42318; font: 13px/1.5 var(--sans, "Space Grotesk", sans-serif); }
.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 23px 0 0; color: #7a8498; font: 11px/17px var(--sans, "Space Grotesk", sans-serif); }
.login-security svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

@media (max-width: 760px) {
  .login-layout { display: block; min-height: 100vh; }
  .login-intro { display: none; }
  .login-form-side { box-sizing: border-box; min-height: 100vh; justify-content: center; padding: max(28px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom)); }
  .login-card { box-sizing: border-box; width: min(100%, 430px); padding: 32px 24px 26px; border: 1px solid #eaecf0; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px #15244a0a; }
  .login-mobile-brand { display: inline-flex; margin-bottom: 32px; color: #141b2c; }
  .login-mobile-brand .login-card h2 { font-size: 26px; }
  .login-description { margin-bottom: 15px; }
}

@media (max-width: 360px) {
  .login-form-side { padding-right: 14px; padding-left: 14px; }
  .login-card { padding-right: 18px; padding-left: 18px; }
}
/* Center the sign-in card as the only login panel. */
.login-layout{grid-template-columns:minmax(0,1fr);place-items:center}
.login-intro{display:none}
.login-form-side{box-sizing:border-box;width:100%;min-height:100vh;padding:32px 22px}
.login-card{box-sizing:border-box;width:min(100%,460px);padding:36px 34px 30px;border:1px solid #eaecf0;border-radius:12px;background:#fff;box-shadow:0 12px 32px #15244a0a}
.login-mobile-brand{display:inline-flex;margin-bottom:15px;color:#141b2c}
.login-mobile-brand{flex-direction:column;gap:12px}
.login-mobile-brand img{display:block;width:min(100%,127.5px);height:auto;object-fit:contain}
@media(max-width:360px){.login-card{padding-right:18px;padding-left:18px}}
@media(max-width:760px){.login-mobile-brand img{width:min(100%,127.5px)} .login-form label{font-size:15px} .login-submit{font-size:16px}}
