@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  --canvas: #f5f4ef;
  --surface: #fff;
  --ink: #18231f;
  --muted: #6f7a75;
  --line: #d9dfd9;
  --teal: #087763;
  --teal-dark: #055a4b;
  --teal-soft: #eaf6f2;
  --red: #a83b3b;
}

* { box-sizing: border-box; }

body.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  padding: 24px;
}

.login-shell {
  width: min(940px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgb(24 35 31 / 11%);
}

.login-story {
  display: flex;
  flex-direction: column;
  background: #183c34;
  color: #fff;
  padding: 34px 38px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.login-brand img {
  filter: brightness(0) invert(1);
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong { font-size: 14px; }
.login-brand span { margin-top: 2px; color: #b8cdc6; font-size: 10px; }

.login-story-copy {
  margin: auto 0;
}

.login-eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.login-story .login-eyebrow { color: #8ed0bb; }

.login-story h1 {
  margin: 0 0 15px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 680;
  letter-spacing: -.05em;
  line-height: .98;
}

.login-story-copy p {
  max-width: 390px;
  margin: 0;
  color: #c8d8d3;
  font-size: 13px;
  line-height: 1.65;
}

.login-method {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-method li {
  color: #b8cdc6;
  font-size: 8px;
  font-weight: 650;
  text-align: center;
  text-transform: uppercase;
}

.login-method span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto 5px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 58px);
}

.login-heading { margin-bottom: 24px; }

.login-heading h2 {
  margin: 0 0 7px;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.login-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.login-form { display: grid; gap: 15px; }
.login-field { display: grid; gap: 5px; }

.login-field label {
  color: #3f4d47;
  font-size: 11px;
  font-weight: 680;
}

.login-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd3cd;
  border-radius: 8px;
  background: #fff;
  padding: 0 11px;
}

.password-input-wrap { grid-template-columns: auto minmax(0, 1fr) auto; }
.login-input-wrap > i { color: #8a9690; }

.login-field input {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 9px 0;
}

.login-input-wrap:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(8 119 99 / 11%);
}

.password-input-wrap button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-input-wrap button:hover { background: var(--teal-soft); color: var(--teal); }

.login-validation,
.field-validation-error {
  color: var(--red);
  font-size: 10px;
}

.login-validation:empty,
.field-validation-error:empty { display: none; }

.login-submit {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
}

.login-submit:hover { background: var(--teal-dark); }

.login-security {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.vc-network-footer {
  width: min(940px, 100%);
  margin: 20px auto 0;
  color: var(--ink);
}

.vc-network-footer__shell {
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 14px 38px rgb(24 35 31 / 7%);
}

.vc-network-footer__intro { display: grid; align-content: start; gap: 7px; }
.vc-network-footer__eyebrow { color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.vc-network-footer__intro strong { max-width: 21ch; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.08; }
.vc-network-footer__intro p, .vc-network-footer__meta { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.vc-network-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.vc-network-footer__link { position: relative; display: grid; gap: 2px; min-width: 0; padding: 9px 26px 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--teal-soft); text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.vc-network-footer__link:hover, .vc-network-footer__link:focus-visible, .vc-network-footer__link.is-current { border-color: var(--teal); background: #fff; transform: translateY(-1px); }
.vc-network-footer__label { font-size: 10px; font-weight: 750; }
.vc-network-footer__host { overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.vc-network-footer__arrow { position: absolute; top: 9px; right: 10px; color: var(--teal); font-size: 11px; }
.vc-network-footer__meta { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px 0; }

:where(button, input):focus-visible {
  outline: 3px solid rgb(8 119 99 / 24%);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  body.login-page { padding: 14px; }
  .login-shell { min-height: 0; grid-template-columns: 1fr; }
  .login-story { padding: 22px; }
  .login-story-copy { margin: 44px 0; }
  .login-story h1 { font-size: 40px; }
  .login-method { display: none; }
  .login-panel { padding: 28px 22px; }
  .vc-network-footer__shell { grid-template-columns: 1fr; }
  .vc-network-footer__links { grid-template-columns: 1fr; }
  .vc-network-footer__meta { flex-direction: column; align-items: flex-start; }
}
