:root {
  --font-size-base: 12px;
  --font-size: var(--font-size-base);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-family: var(--font-sans);
  font-size: var(--font-size);
  color: #172554;
  background: #f7f9fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --navy: #0d1d40;
  --orange: #ff6b1a;
  --blue: #172554;
  --muted-blue: #6881a6;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body { min-height: 100vh; background: #f7f9fc; font-family: var(--font-sans); font-size: var(--font-size-base); }

button, input { font: inherit; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 58.2% 41.8%;
}

.brand-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 31px 35px 22px;
  color: #fff;
  background: var(--navy);
}

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

.brand-lockup img { display: block; width: 40px; height: 40px; flex: 0 0 40px; }
.brand-words { display: flex; flex-direction: column; gap: 2px; }
.brand-words strong { font-family: var(--font-display); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.25px; }
.brand-words small { color: #93a7ca; font-size: 11px; letter-spacing: .15px; }

.welcome-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin: auto 0;
  padding: 20px 0 22px;
}

.access-badge {
  min-height: 26px;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid rgba(154, 177, 215, .22);
  border-radius: 30px;
  color: var(--orange);
  background: rgba(255, 255, 255, .075);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18px;
}

.access-badge svg { width: 14px; height: 14px; flex: 0 0 14px; }

.welcome-content h1 {
  font-family: var(--font-display);
  margin: 43px 0 13px;
  color: #f8faff;
  font-size: clamp(31px, 2.2vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.15px;
}

.welcome-content h1 span { color: var(--orange); }

.welcome-content > p {
  max-width: 550px;
  margin: 0;
  color: #9cb2d5;
  font-size: 14px;
  line-height: 1.65;
}

.brand-footer {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #7186aa;
  font-size: 11px;
  letter-spacing: .1px;
}

.brand-footer span { padding: 0 3px; }

.brand-orbit {
  position: absolute;
  top: -80px;
  left: -65px;
  width: 545px;
  height: 545px;
  border: 1px solid rgba(129, 155, 197, .1);
  border-radius: 50%;
  pointer-events: none;
}

.form-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 45px 42px;
  background: #f7f9fc;
}

.form-content { width: min(380px, 100%); }

.brand-lockup-dark { gap: 13px; color: var(--navy); }
.brand-lockup-dark strong {
  font-family: var(--font-display);
  color: #101d35;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.6px;
}

.form-description {
  margin: 12px 0 31px;
  color: #617999;
  font-size: 12px;
  letter-spacing: .08px;
}

.field { margin-bottom: 17px; }

.field label {
  display: block;
  margin: 0 0 7px;
  color: #17365f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25px;
}

.field input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd5e2;
  border-radius: 6px;
  outline: none;
  color: #213550;
  background: #fff;
  font-size: 12px;
  transition: border-color .16s, box-shadow .16s;
}

.field input::placeholder { color: #8a9bb5; opacity: 1; }
.field input:hover { border-color: #aebdd1; }
.field input:focus { border-color: #466ac9; box-shadow: 0 0 0 3px rgba(33, 66, 188, .1); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 42px; }

.visibility-button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 5px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 4px;
  color: #71829b;
  background: transparent;
  cursor: pointer;
}

.visibility-button:hover { color: #243d68; background: #f0f3f8; }
.visibility-button:focus-visible { outline: 2px solid rgba(33, 66, 188, .45); }
.visibility-button svg { width: 17px; height: 17px; }

.submit-button {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: -2px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s, box-shadow .16s, transform .16s;
}

.submit-button:hover { background: #1938a8; box-shadow: 0 5px 12px rgba(24, 56, 168, .17); }
.submit-button:active { transform: translateY(1px); }
.submit-button:focus-visible { outline: 3px solid rgba(33, 66, 188, .25); outline-offset: 2px; }
.submit-button:disabled { cursor: wait; opacity: .78; }
.button-arrow { width: 16px; height: 16px; }
.button-spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading .button-spinner { display: inline-block; }
.submit-button.is-loading .button-arrow { display: none; }

.feedback {
  margin: -2px 0 12px;
  padding: 9px 10px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.feedback.error { color: #a43242; border-color: #f1cbd0; background: #fff6f7; }
.feedback.success { color: #21734f; border-color: #c8eadb; background: #f2fbf6; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 800px) {
  .login-page { grid-template-columns: minmax(250px, 46%) 1fr; }
  .brand-panel { padding-left: 26px; padding-right: 26px; }
  .welcome-content h1 { font-size: clamp(28px, 4vw, 36px); }
  .access-badge { font-size: 9px; letter-spacing: 0; }
  .form-panel { padding: 36px 30px; }
}

@media (max-width: 620px) {
  .login-page { display: flex; flex-direction: column; }
  .brand-panel { min-height: 0; padding: 22px 24px 26px; }
  .brand-panel > .brand-lockup { margin-bottom: 31px; }
  .welcome-content { margin: 0; padding: 0 0 25px; }
  .welcome-content h1 { margin: 22px 0 8px; font-size: 28px; }
  .welcome-content > p { font-size: 12px; }
  .brand-footer { font-size: 10px; }
  .brand-orbit { width: 390px; height: 390px; top: -115px; left: -100px; }
  .form-panel { flex: 1; min-height: 0; padding: 38px 24px 48px; }
  .form-description { margin-bottom: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


[hidden] { display: none !important; }

.google-button {
  position: relative;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid #d4dbe5;
  border-radius: 6px;
  color: #24334c;
  background: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.google-button:hover { border-color: #aeb9c8; background: #fcfdff; box-shadow: 0 2px 5px rgba(20, 39, 69, .06); }
.google-button:focus-visible { outline: 3px solid rgba(33, 66, 188, .2); outline-offset: 2px; }
.google-button svg { position: absolute; left: 12px; width: 19px; height: 19px; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 0 19px;
  color: #8695ad;
  font-size: 11px;
}
.login-divider::before, .login-divider::after { height: 1px; flex: 1; background: #dfe5ed; content: ""; }