/* Standalone login experience. Loaded after the shared theme styles. */
.login-page {
  align-items: stretch !important;
  background: #f2f6fc;
  color: #14233a;
  display: block !important;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 0 !important;
  position: relative;
}

.login-backdrop,
.login-grid-pattern,
.login-orb {
  inset: 0;
  pointer-events: none;
  position: fixed;
}

.login-backdrop { overflow: hidden; z-index: 0; }
.login-grid-pattern {
  background-image: linear-gradient(rgba(39, 87, 153, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 87, 153, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.login-orb { border-radius: 50%; filter: blur(2px); }
.login-orb-one {
  background: radial-gradient(circle, rgba(51, 129, 234, .2), transparent 68%);
  height: 640px;
  left: -280px;
  top: -280px;
  width: 640px;
}
.login-orb-two {
  background: radial-gradient(circle, rgba(37, 181, 137, .16), transparent 68%);
  bottom: -340px;
  height: 700px;
  left: auto;
  right: -280px;
  top: auto;
  width: 700px;
}

.login-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 24px;
  position: relative;
  z-index: 3;
}
.login-page .login-theme-toggle,
.login-page .login-language-switcher {
  align-items: center;
  background: rgba(255, 255, 255, .86) !important;
  border: 1px solid #d9e3f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 7px 22px rgba(27, 52, 88, .08) !important;
  color: #243b5f !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  gap: 9px;
  height: 42px;
  margin: 0 !important;
  padding: 0 14px !important;
  position: static !important;
  width: auto !important;
}
.login-page .login-theme-toggle:hover,
.login-page .login-language-switcher:hover { border-color: #a9bed8 !important; transform: translateY(-1px); }
.login-page .login-language-switcher select {
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 750 !important;
  height: auto !important;
  min-height: 0 !important;
  outline: 0;
  padding: 0 18px 0 0 !important;
}
.login-language-caret { font-size: 9px; margin-left: -21px; pointer-events: none; }

.login-stage {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 78px);
  padding: 12px 32px 22px;
  position: relative;
  z-index: 1;
}
.login-shell {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(188, 204, 225, .76);
  border-radius: 30px;
  box-shadow: 0 32px 85px rgba(27, 52, 88, .18);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
  max-width: 1080px;
  min-height: min(650px, calc(100vh - 112px));
  overflow: hidden;
  width: 100%;
}

.login-showcase {
  background:
    radial-gradient(circle at 92% 8%, rgba(67, 160, 255, .26), transparent 29%),
    radial-gradient(circle at 5% 100%, rgba(20, 190, 159, .2), transparent 34%),
    linear-gradient(145deg, #061f4d 0%, #083273 54%, #075c85 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 42px 46px 36px;
  position: relative;
}
.login-showcase::after {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  content: "";
  height: 360px;
  position: absolute;
  right: -190px;
  top: 80px;
  width: 360px;
}
.login-showcase-top { align-items: flex-start; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.login-brand-logo { height: auto; max-width: 142px; object-fit: contain; }
.login-secure-badge {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  padding: 8px 11px;
}
.login-showcase-copy { margin: auto 0 38px; max-width: 480px; position: relative; z-index: 1; }
.login-eyebrow {
  color: #86d7ff;
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.login-showcase h1 {
  color: #fff;
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.04;
  margin: 0;
  max-width: 510px;
}
.login-security { max-width: 500px; position: relative; z-index: 1; }
.login-security-title {
  align-items: center;
  color: #91d8ff;
  display: flex;
  font-size: 11px;
  font-weight: 850;
  gap: 8px;
  letter-spacing: .1em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.login-security ul { list-style: none; margin: 0; padding: 0; }
.login-security li {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  gap: 13px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 12px 0;
}
.login-security li > span {
  align-items: center;
  background: rgba(81, 170, 255, .16);
  border: 1px solid rgba(148, 207, 255, .18);
  border-radius: 11px;
  color: #9bd7ff;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.login-security strong,
.login-security small { display: block; overflow-wrap: anywhere; }
.login-security strong { color: #fff; font-size: 12px; line-height: 1.3; }
.login-security small { color: rgba(219, 234, 252, .72); font-size: 10px; line-height: 1.45; margin-top: 2px; }

.login-page .login-card {
  align-self: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  padding: 40px 54px !important;
  width: 100%;
}
.login-mobile-brand { display: none; }
.login-card-kicker { align-items: center; color: #2c5b9d; display: flex; font-size: 12px; font-weight: 850; gap: 9px; letter-spacing: .08em; margin-bottom: 24px; text-transform: uppercase; }
.login-card-kicker span { align-items: center; background: #e6f0ff; border-radius: 10px; color: #3478dc; display: inline-flex; height: 34px; justify-content: center; width: 34px; }
.login-page .login-card h2 { color: #14233a; font-size: 32px; font-weight: 850; letter-spacing: -.035em; line-height: 1.1; }
.login-page .login-card-subtitle { color: #687990; font-size: 14px; line-height: 1.55; margin: 9px 0 24px; }
.login-form { display: grid; gap: 17px; }
.login-field > label { color: #263b58; display: block; font-size: 12px; font-weight: 800; margin: 0 0 8px; }
.login-input-wrap { position: relative; }
.login-input-wrap > i {
  color: #8495ac;
  font-size: 14px;
  left: 15px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.login-input-wrap input {
  background: #f8faff !important;
  border: 1px solid #cfdbea !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(23, 43, 77, .03) !important;
  color: #15243a !important;
  font-size: 14px !important;
  height: 50px !important;
  outline: 0;
  padding: 0 45px 0 43px !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
}
.login-input-wrap input:focus { background: #fff !important; border-color: #3478dc !important; box-shadow: 0 0 0 4px rgba(52, 120, 220, .12) !important; }
.login-caps-status {
  align-items: center;
  color: #7c8ca2;
  display: flex;
  font-size: 10px;
  font-weight: 750;
  gap: 5px;
  justify-content: flex-end;
  line-height: 1;
  margin: 7px 2px -2px;
  min-height: 15px;
  transition: color .16s ease;
}
.login-caps-status i {
  align-items: center;
  border: 1px solid #cbd6e4;
  border-radius: 4px;
  display: inline-flex;
  font-size: 7px;
  height: 14px;
  justify-content: center;
  width: 14px;
}
.login-caps-status[data-state="off"] { color: #44816b; }
.login-caps-status[data-state="off"] i { background: #e8f7f1; border-color: #b7dece; }
.login-caps-status[data-state="on"] { color: #a65216; font-size: 11px; font-weight: 850; }
.login-caps-status[data-state="on"] i { background: #fff0d8; border-color: #efbc70; box-shadow: 0 0 0 3px rgba(239, 164, 54, .12); }
.login-caps-status-common { margin-bottom: -5px; margin-top: -8px; }
.login-password-toggle {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px;
  box-shadow: none !important;
  color: #788ba4 !important;
  display: flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 34px;
}
.login-password-toggle:hover { background: #e8eff9 !important; color: #2869c5 !important; }
.login-page .login-options { color: #718198; font-size: 12px; margin: -2px 0 0; }
.login-page .login-options .form-check-input { border-color: #b9c8da; height: 18px; margin: 0; width: 18px; }
.login-page .login-options .form-check-input:checked { background-color: #3478dc; border-color: #3478dc; }
.login-page .login-options .form-check-label { color: #42546c; font-size: 12px; font-weight: 700; }
.login-page .login-options > span i { font-size: 10px; margin-right: 4px; }
.login-page .btn-login {
  align-items: center;
  background: linear-gradient(135deg, #2566ca, #3688ed) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(37, 102, 202, .24) !important;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 50px;
  justify-content: space-between;
  margin-top: 2px;
  padding: 0 19px !important;
}
.login-page .btn-login:hover { box-shadow: 0 13px 28px rgba(37, 102, 202, .32) !important; filter: brightness(1.04); transform: translateY(-1px); }
.login-page .btn-login:active { transform: translateY(0); }
.login-action-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr);
}
.login-action-grid.is-password-only { grid-template-columns: 1fr; }
.login-passkey-button {
  align-items: center;
  background: #eef5ff !important;
  border: 1px solid #b9cfed !important;
  border-radius: 12px !important;
  color: #245994 !important;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  height: 50px;
  justify-content: center;
  padding: 0 12px !important;
  white-space: nowrap;
}
.login-passkey-button i { font-size: 17px; }
.login-passkey-button:hover { background: #e0edff !important; border-color: #8eb2e3 !important; transform: translateY(-1px); }
.login-passkey-button:disabled { cursor: wait; opacity: .68; }
.login-passkey-status {
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.4;
  margin-top: -7px;
  padding: 8px 10px;
}
.login-passkey-status.is-working { background: #eef5ff; color: #285b97; }
.login-passkey-status.is-error { background: #fff0ef; color: #9b302b; }
.login-help { border-top: 1px solid #e4ebf4; color: #8190a4; font-size: 11px; line-height: 1.45; margin: 22px 0 0; padding-top: 16px; text-align: center; }
.login-help i { color: #4f83ca; margin-right: 4px; }
.login-alert { align-items: flex-start; border-radius: 12px; display: flex; font-size: 12px; gap: 9px; margin-bottom: 20px; padding: 11px 13px; }
.login-alert ul { list-style: none; margin: 0; padding: 0; }

html[data-theme="dark"] .login-page { background: #05080d !important; color: #edf4ff !important; }
html[data-theme="dark"] .login-grid-pattern { background-image: linear-gradient(rgba(116, 154, 206, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(116, 154, 206, .05) 1px, transparent 1px); }
html[data-theme="dark"] .login-page .login-theme-toggle,
html[data-theme="dark"] .login-page .login-language-switcher { background: rgba(12, 18, 27, .92) !important; border-color: #26364c !important; color: #dce8f8 !important; }
html[data-theme="dark"] .login-shell { background: #0b1018; border-color: #263348; box-shadow: 0 32px 90px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .login-page .login-card { background: #0b1018 !important; }
html[data-theme="dark"] .login-card-kicker { color: #8bbdff; }
html[data-theme="dark"] .login-card-kicker span { background: #142746; color: #82b8ff; }
html[data-theme="dark"] .login-page .login-card h2 { color: #f3f7fd !important; }
html[data-theme="dark"] .login-page .login-card-subtitle,
html[data-theme="dark"] .login-page .login-options { color: #8fa0b7 !important; }
html[data-theme="dark"] .login-field > label { color: #dce6f4 !important; }
html[data-theme="dark"] .login-input-wrap input { background: #0e1724 !important; border-color: #33435a !important; color: #f0f5fc !important; -webkit-text-fill-color: #f0f5fc !important; }
html[data-theme="dark"] .login-input-wrap input:focus { background: #111d2d !important; border-color: #4c91ed !important; box-shadow: 0 0 0 4px rgba(76, 145, 237, .14) !important; }
html[data-theme="dark"] .login-input-wrap > i,
html[data-theme="dark"] .login-password-toggle { color: #8fa4bf !important; }
html[data-theme="dark"] .login-password-toggle:hover { background: #18263a !important; color: #9dc8ff !important; }
html[data-theme="dark"] .login-caps-status { color: #8193aa; }
html[data-theme="dark"] .login-caps-status i { border-color: #3b4b61; }
html[data-theme="dark"] .login-caps-status[data-state="off"] { color: #78bca4; }
html[data-theme="dark"] .login-caps-status[data-state="off"] i { background: #102a25; border-color: #28584b; }
html[data-theme="dark"] .login-caps-status[data-state="on"] { color: #ffc36d; }
html[data-theme="dark"] .login-caps-status[data-state="on"] i { background: #382510; border-color: #7d5722; box-shadow: 0 0 0 3px rgba(255, 174, 61, .1); }
html[data-theme="dark"] .login-page .login-options .form-check-label { color: #bdcbe0; }
html[data-theme="dark"] .login-help { border-color: #202d40; color: #8092aa; }
html[data-theme="dark"] .login-passkey-button { background: #111e31 !important; border-color: #34506f !important; color: #a8ceff !important; }
html[data-theme="dark"] .login-passkey-button:hover { background: #182a43 !important; border-color: #4c729e !important; }
html[data-theme="dark"] .login-passkey-status.is-working { background: #122640; color: #aed1ff; }
html[data-theme="dark"] .login-passkey-status.is-error { background: #351817; color: #ffb9b3; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); }
  .login-showcase { padding: 36px 30px 30px; }
  .login-security li { padding: 10px 0; }
  .login-security small { font-size: 9px; }
  .login-page .login-card { padding: 38px !important; }
}

@media (max-width: 720px) {
  .login-toolbar { padding: 12px 14px; }
  .login-page .login-theme-toggle,
  .login-page .login-language-switcher { height: 39px; padding: 0 11px !important; }
  .login-stage { align-items: flex-start; min-height: calc(100vh - 64px); padding: 8px 14px 28px; }
  .login-shell { border-radius: 22px; display: block; max-width: 470px; min-height: 0; }
  .login-showcase { display: none; }
  .login-page .login-card { padding: 32px 26px 28px !important; }
  .login-mobile-brand { display: block; margin-bottom: 26px; }
  .login-mobile-brand img { height: auto; max-width: 126px; }
  .login-page .login-card h2 { font-size: 28px; }
  html[data-theme="dark"] .login-page .login-card { border-radius: 22px !important; }
}

@media (max-width: 420px) {
  .login-page .login-theme-toggle span { display: none; }
  .login-page .login-theme-toggle { justify-content: center; width: 40px !important; }
  .login-toolbar { gap: 7px; }
  .login-page .login-card { padding: 27px 20px 24px !important; }
  .login-card-kicker { margin-bottom: 20px; }
  .login-page .login-options > span { display: none; }
  .login-action-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .login-shell { animation: login-rise .5s cubic-bezier(.2, .75, .25, 1) both; }
  @keyframes login-rise { from { opacity: 0; transform: translateY(16px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
}
