:root {
  color-scheme: light;
  --brand-blue: #117fbd;
  --brand-blue-dark: #245486;
  --brand-red: #ed1c2e;
  --brand-ink: #24364b;
  --brand-muted: #65758a;
  --brand-line: #d8e2ec;
  --brand-wash: #eff7fc;
  --brand-surface: #ffffff;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--brand-ink);
  background: #f5f8fb;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f5f8fb; }
body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  max-width: none !important;
  color: var(--brand-ink);
  background: #f5f8fb !important;
  font: 15px/1.55 Inter, "Segoe UI", system-ui, -apple-system, sans-serif !important;
}

.vf-brandbar {
  position: relative;
  z-index: 20;
  display: flex !important;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 82px;
  margin: 0 !important;
  padding: 8px clamp(18px, 4vw, 56px) 10px !important;
  color: var(--brand-ink);
  background: #fff;
  border: 0;
  border-bottom: 4px solid var(--brand-blue);
  box-shadow: 0 2px 12px rgb(27 61 91 / 8%);
}
.vf-brandbar::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 16%;
  height: 4px;
  content: "";
  background: var(--brand-red);
}
.vf-brandmark { display: inline-flex; align-items: center; flex: 0 0 auto; }
.vf-brandmark img { display: block; width: auto; height: 62px; max-width: 96px; object-fit: contain; }
.vf-brandtitle { display: grid; gap: 1px; }
.vf-brandtitle strong { color: var(--brand-blue-dark); font-size: 21px; line-height: 1.15; letter-spacing: .01em; }
.vf-brandtitle span { color: var(--brand-muted); font-size: 12px; }
.vf-brandcontact { display: grid; gap: 1px; margin-left: auto; text-align: right; font-size: 12px; }
.vf-brandcontact a { color: var(--brand-blue-dark); text-decoration: none; }
.vf-brandcontact a:hover { color: var(--brand-red); text-decoration: underline; }

.vf-content {
  width: min(100% - 40px, 1440px);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 28px 0 42px;
}
.vf-auth .vf-content { width: min(100% - 32px, 520px); min-height: auto; margin: auto; padding: 36px 0; }
.vf-auth main {
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: clamp(24px, 5vw, 38px) !important;
  color: var(--brand-ink);
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgb(36 84 134 / 12%);
}
.vf-auth .vf-content > h1,
.vf-auth .vf-content > p,
.vf-auth .vf-content > form,
.vf-auth .vf-content > a,
.vf-auth .vf-content > small,
.vf-auth .vf-content > textarea {
  display: block;
  width: min(100%, 680px);
  margin-right: auto;
  margin-left: auto;
}
.vf-auth .vf-content > h1 { margin-top: 0; color: var(--brand-blue-dark); }

h1, h2, h3 { color: var(--brand-blue-dark); line-height: 1.25; }
h1 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 31px); font-weight: 700; }
h2 { margin: 24px 0 12px; font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 10px 0; }
a { color: var(--brand-blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand-red); }
strong { color: inherit; }

section, .panel, .card, details, .notice {
  border: 1px solid var(--brand-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 14px rgb(36 84 134 / 5%);
}
section, .panel, .card, details { margin: 16px 0; padding: clamp(16px, 2vw, 24px); }
.notice { padding: 13px 17px; color: var(--brand-blue-dark); background: var(--brand-wash); border-left: 4px solid var(--brand-blue); }
.error, .error-message, [role="alert"] { color: #a9192a; }
.muted, small { color: var(--brand-muted); }

form { gap: 12px; }
label { color: var(--brand-ink); font-weight: 600; }
input, select, textarea {
  max-width: 100%;
  padding: 10px 12px;
  color: var(--brand-ink);
  background: #fff;
  border: 1px solid #c9d5e2;
  border-radius: 8px;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgb(17 127 189 / 18%);
  border-color: var(--brand-blue);
}
button, input[type="submit"] {
  width: auto;
  padding: 10px 17px;
  color: #fff;
  background: var(--brand-blue-dark);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
button:hover, input[type="submit"]:hover { background: var(--brand-blue); }
button:active { transform: translateY(1px); }
button.link { padding: 6px 10px; background: transparent; color: var(--brand-blue-dark); }
button.link:hover { color: var(--brand-red); background: var(--brand-wash); }

table { width: 100%; border-collapse: collapse; text-align: left; background: #fff; }
th { color: #fff; background: var(--brand-blue-dark); font-size: 13px; font-weight: 650; }
td, th { padding: 11px 10px; border-bottom: 1px solid var(--brand-line); vertical-align: top; }
tbody tr:nth-child(even), tr:nth-child(even) { background: #f6f9fc; }
tr:hover td { background: #f0f7fb; }
.vf-content > header:not(.vf-brandbar) { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 22px; }
.vf-content > header:not(.vf-brandbar) h1 { margin: 0; }
.vf-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 17px clamp(18px, 4vw, 56px);
  color: #fff;
  background: var(--brand-blue-dark);
  border-top: 3px solid var(--brand-red);
  font-size: 12px;
}
.vf-footer span:last-child { color: rgb(255 255 255 / 78%); }

@media (max-width: 720px) {
  .vf-brandbar { min-height: 72px; gap: 10px; padding: 7px 15px !important; }
  .vf-brandmark img { height: 53px; max-width: 78px; }
  .vf-brandtitle strong { font-size: 18px; }
  .vf-brandtitle span { max-width: 150px; font-size: 11px; }
  .vf-brandcontact { display: none; }
  .vf-content { width: calc(100% - 28px); padding-top: 20px; }
  .vf-content > header:not(.vf-brandbar) { align-items: flex-start; flex-direction: column; }
  table { display: block; overflow-x: auto; }
  .vf-footer { flex-direction: column; }
}
