:root {
  color-scheme: light;
  --blue: #0645bd;
  --blue-dark: #03358f;
  --orange: #f36f21;
  --ink: #101828;
  --muted: #667085;
  --line: #d8dde7;
  --field: #f9fafc;
  --danger: #d92d20;
  --page: #eef2f8;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--page);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100dvh;
  display: grid;
  place-items: stretch center;
}

.login-screen {
  width: 100%;
  min-height: 100dvh;
  padding: calc(34px + env(safe-area-inset-top)) 22px calc(20px + env(safe-area-inset-bottom));
  background: #fff;
  display: flex;
  flex-direction: column;
}

.brand-block {
  text-align: center;
}

.brand-logo {
  display: block;
  width: 136px;
  height: auto;
  margin: 0 auto;
}

.brand-block p {
  margin: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}

.login-heading {
  margin-top: clamp(34px, 8vh, 68px);
}

.login-heading h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.login-form {
  margin-top: 30px;
}

.field-group + .field-group {
  margin-top: 18px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
  height: 54px;
}

.input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: var(--field);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap input::placeholder {
  color: #98a2b3;
}

.input-wrap input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6, 69, 189, 0.11);
}

.input-wrap input.invalid {
  border-color: var(--danger);
}

.field-icon {
  position: absolute;
  z-index: 1;
  left: 17px;
  top: 50%;
  translate: 0 -50%;
  width: 20px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.lock-icon {
  width: 14px;
  height: 13px;
  border: 2px solid var(--blue);
  border-radius: 2px;
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -9px;
  width: 8px;
  height: 9px;
  border: 2px solid var(--blue);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.visibility-button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
}

.eye-icon {
  display: block;
  width: 20px;
  height: 14px;
  margin: auto;
  border: 2px solid currentColor;
  border-radius: 60% 40% 60% 40%;
  rotate: 45deg;
}

.eye-icon::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin: 2px auto;
  border-radius: 50%;
  background: currentColor;
}

.visibility-button[aria-pressed="true"] .eye-icon::before {
  content: "";
  position: absolute;
  width: 23px;
  height: 2px;
  margin: 5px 0 0 -2px;
  background: currentColor;
}

.field-error {
  min-height: 16px;
  margin: 5px 0 -3px;
  color: var(--danger);
  font-size: 11px;
}

.forgot-link {
  display: block;
  width: max-content;
  margin: 5px 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.remember-row { margin-top: 13px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }.remember-row input { width: 17px; height: 17px; accent-color: var(--blue); }

.primary-button {
  width: 100%;
  height: 54px;
  margin-top: 28px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(6, 69, 189, 0.2);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button span:first-child {
  grid-column: 2;
}

.primary-button .arrow {
  grid-column: 3;
  justify-self: end;
  font-size: 22px;
  font-weight: 400;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--blue-dark);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.account-action {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
}

.account-action span {
  color: var(--muted);
}

.account-action a {
  display: block;
  margin-top: 7px;
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.forgot-link:hover,
.account-action a:hover {
  text-decoration: underline;
}

.login-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #667085;
  font-size: 11px;
}

.security-mark {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e8f6ed;
  color: #159447;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  border-radius: 6px;
  background: #101828;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  translate: -50% 12px;
  transition: opacity 180ms ease, translate 180ms ease;
}

.toast.visible {
  opacity: 1;
  translate: -50% 0;
}

.install-banner { position: fixed; z-index: 9; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); left: 14px; max-width: 390px; margin: auto; padding: 12px 42px 12px 14px; border: 1px solid #cbd8ef; border-radius: 7px; background: #f4f7ff; box-shadow: 0 12px 30px rgba(20, 38, 74, .18); }
.install-banner p { margin: 0 0 9px; color: var(--ink); font-size: 12px; line-height: 1.4; }
.install-banner button:not(.install-dismiss) { height: 34px; padding: 0 11px; border: 0; border-radius: 5px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; }
.install-dismiss { position: absolute; top: 7px; right: 8px; width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); font-size: 21px; cursor: pointer; }
.network-status { position: fixed; z-index: 11; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); left: 14px; padding: 10px 12px; border-radius: 6px; background: #101828; color: #fff; font-size: 12px; text-align: center; opacity: 0; pointer-events: none; translate: 0 8px; transition: opacity 180ms ease, translate 180ms ease; }
.network-status.offline, .network-status.visible { opacity: 1; translate: 0 0; }
.legal-page { width: min(100% - 36px, 700px); min-height: 100dvh; margin: auto; padding: 36px 0; color: var(--ink); line-height: 1.6; }.legal-page h1{color:var(--blue-dark);font-size:24px}.legal-page a,.legal-links a,.terms-row a{color:var(--blue)}

@media (min-width: 520px) {
  .app-shell {
    padding: 28px;
    place-items: center;
  }

  .login-screen {
    width: min(100%, 420px);
    min-height: min(790px, calc(100dvh - 56px));
    padding: 38px 34px 24px;
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(20, 38, 74, 0.12);
  }
}

@media (max-height: 660px) {
  .login-screen {
    padding-top: calc(20px + env(safe-area-inset-top));
  }

  .brand-logo {
    width: 112px;
  }

  .login-heading {
    margin-top: 22px;
  }

  .login-form {
    margin-top: 20px;
  }

  .primary-button {
    margin-top: 18px;
  }

  .account-action {
    margin-top: 18px;
  }
}

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