/* Restored from the original grant portal login design. */
:root {
  --font-ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: var(--font-ui);
  --ga-shadow-md: 0 4px 12px rgba(0, 32, 50, 0.08), 0 2px 4px rgba(0, 32, 50, 0.04);
}
* { box-sizing: border-box; }
body { margin: 0; color: #16161a; }
button, input { font: inherit; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #3092b1; outline-offset: 4px; }
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 0.95fr) minmax(520px, 1.05fr);
  background: #fff;
  font-family: var(--font-ui), ui-sans-serif, system-ui, sans-serif;
}

.brandPanel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px clamp(48px, 6vw, 96px);
  background:
    radial-gradient(circle at 18% 18%, rgba(48, 146, 177, 0.34), transparent 28rem),
    radial-gradient(circle at 90% 84%, rgba(168, 222, 237, 0.18), transparent 24rem),
    #001e2c;
  color: #fff;
}

.brandPanel::before,
.brandPanel::after {
  position: absolute;
  border: 1px solid rgba(168, 222, 237, 0.12);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.brandPanel::before {
  width: 520px;
  height: 520px;
  top: -250px;
  right: -220px;
}

.brandPanel::after {
  width: 340px;
  height: 340px;
  right: -150px;
  bottom: -170px;
}

.brandContent {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 88px;
}

.whiteLogo {
  display: block;
  width: auto;
  height: 30px;
}

.brandRule {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.24);
}

.productName {
  font-size: 14px;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 16px;
  color: #a8deed;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brandContent h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

.brandCopy {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body), ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.proofRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.proofDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fb3c7;
  box-shadow: 0 0 0 4px rgba(111, 179, 199, 0.11);
}

.reviewMotif {
  position: relative;
  width: min(100%, 490px);
  height: 128px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.documentLines {
  position: absolute;
  inset: 24px 178px 24px 24px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.28) 0,
    rgba(255, 255, 255, 0.28) 2px,
    transparent 2px,
    transparent 14px
  );
  opacity: 0.6;
}

.highlight {
  position: absolute;
  top: 50px;
  left: 56px;
  width: 160px;
  height: 10px;
  border-radius: 2px;
  background: rgba(250, 181, 21, 0.42);
}

.commentCard {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 142px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.commentLabel {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  background: #00547b;
  color: #fff;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.commentTitle,
.commentLine {
  border-radius: 999px;
  background: #dfe8eb;
}

.commentTitle {
  width: 94%;
  height: 7px;
  margin: 11px 0 9px;
  background: #003f5d;
  opacity: 0.82;
}

.commentLine {
  width: 100%;
  height: 5px;
  margin-top: 6px;
}

.commentLineShort {
  width: 72%;
}

.formPanel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  background:
    radial-gradient(circle at 100% 0%, rgba(48, 146, 177, 0.08), transparent 30rem),
    #fff;
}

.formWrap {
  width: 100%;
  max-width: 420px;
  animation: ga-fade-up 400ms ease both;
}

.mobileBrand {
  display: none;
}

.formEyebrow {
  margin: 0 0 10px;
  color: #3092b1;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.formWrap h2 {
  margin: 0;
  color: #001e2c;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.formIntro {
  margin: 10px 0 32px;
  color: #6c6c73;
  font-family: var(--font-body), ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.label {
  color: #4a4a50;
  font-size: 12px;
  font-weight: 650;
}

.input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #e2e2e5;
  border-radius: 10px;
  background: #fafafb;
  color: #16161a;
  font-family: var(--font-body), ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.input:hover {
  border-color: #c5c5ca;
}

.input:focus {
  border-color: #3092b1;
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(48, 146, 177, 0.16);
}

.error {
  padding: 10px 12px;
  border: 1px solid rgba(185, 72, 72, 0.28);
  border-radius: 9px;
  background: #fff0f0;
  color: #9d2d2d;
  font-family: var(--font-body), ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.submit {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: #00547b;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 32, 50, 0.12);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit:not(:disabled):hover {
  background: #004a6e;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 32, 50, 0.16);
}

.submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.formFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  color: #9a9aa1;
  font-size: 10.5px;
}

.formFooter a {
  color: #00547b;
  font-weight: 650;
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
    background: #fafafb;
  }

  .brandPanel {
    display: none;
  }

  .formPanel {
    min-height: 100vh;
    padding: 42px 24px;
    background: #fafafb;
  }

  .formWrap {
    max-width: 440px;
    padding: 32px;
    border: 1px solid #e2e2e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--ga-shadow-md);
  }

  .mobileBrand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
  }

  .mobileRule {
    width: 1px;
    height: 22px;
    background: #e2e2e5;
  }

  .mobileProductName {
    color: #003f5d;
    font-size: 12px;
    font-weight: 650;
  }
}

@media (max-width: 520px) {
  .formPanel {
    align-items: flex-start;
    padding: 28px 18px;
  }

  .formWrap {
    padding: 26px 22px;
  }

  .formWrap h2 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .formWrap,
  .input,
  .submit {
    animation: none;
    transition: none;
  }
}


.whiteLogo { filter: brightness(0) invert(1); }
.mobileBrand img { width: 110px; height: auto; }
.field input { margin-top: 7px; }
.back { display: inline-block; margin-top: 22px; color: #00547b; font-size: 12px; font-weight: 600; }
@keyframes ga-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.submit:disabled { opacity: .55; cursor: wait; }

.submit.secondary { margin-top: 10px; background: transparent; color: #1a5a73; border: 1px solid #d6e5eb; box-shadow: none; }
