@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Battambang";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/battambang-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Battambang";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/battambang-900-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --hrw-green: #02922b;
  --hrw-deep-green: #164b3b;
  --hrw-ink: #111111;
  --hrw-muted: #66736e;
  --hrw-soft: #f1f1f1;
  --hrw-white: #ffffff;
  --hrw-error: #b42318;
  --hrw-error-soft: rgba(180, 35, 24, 0.2);
  --hrw-logo-gap: clamp(28px, 6vh, 54px);
  --hrw-card-width: 430px;
  --hrw-cluster-left: calc(25vw - clamp(40px, 4vw, 58px) - 215px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--hrw-soft);
}

body {
  color: var(--hrw-ink);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

.hrw-shell {
  position: relative;
  display: grid;
  grid-template-columns: 25% 75%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--hrw-soft);
}

.hrw-auth-side {
  position: relative;
  z-index: 2;
  min-width: 0;
  background: var(--hrw-soft);
}

.hrw-auth-cluster {
  position: absolute;
  z-index: 4;
  top: var(--hrw-logo-gap);
  left: var(--hrw-cluster-left);
  width: min(var(--hrw-card-width), calc(100vw - 64px));
}

.hrw-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  margin: 0 0 var(--hrw-logo-gap);
  color: inherit;
  text-decoration: none;
}

.hrw-brand img {
  display: block;
  width: 220px;
  height: auto;
}

.hrw-auth-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(30px, 3.4vw, 46px);
  border-radius: 26px;
  background: var(--hrw-white);
  box-shadow: 0 24px 70px rgba(16, 39, 31, 0.14);
  text-align: center;
}

.hrw-eyebrow {
  margin: 0 0 8px;
  color: var(--hrw-green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hrw-auth-card h1,
.hrw-city-copy h2 {
  margin: 0;
  font-family: "Battambang", Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.hrw-auth-card h1 {
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hrw-intro {
  max-width: 390px;
  margin: 14px 0 0;
  color: #3f4744;
  font-size: 15px;
  line-height: 1.65;
}

.hrw-form {
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.hrw-input-wrap {
  position: relative;
}

.hrw-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #9eaaa5;
  border-radius: 10px;
  background: var(--hrw-white);
  color: var(--hrw-ink);
  font: 400 16px/1.4 "Poppins", Arial, Helvetica, sans-serif;
  text-align: center;
}

.hrw-form input:focus {
  border-color: var(--hrw-green);
  outline: 3px solid rgba(2, 146, 43, 0.16);
}

.hrw-form input.hrw-invalid,
.hrw-form input.hrw-invalid:focus,
.hrw-code-grid[data-invalid="true"] .hrw-code-cell {
  border-color: var(--hrw-error);
  background: var(--hrw-error-soft);
}

.hrw-input-wrap input.hrw-invalid:not(:focus) {
  color: transparent;
}

.hrw-field-error {
  display: none;
  position: absolute;
  inset: 2px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 12px;
  color: var(--hrw-error);
  font: 400 16px/1.4 "Poppins", Arial, Helvetica, sans-serif;
  text-align: center;
  pointer-events: none;
}

.hrw-field-error.is-visible {
  display: flex;
}

.hrw-input-wrap:focus-within .hrw-field-error {
  display: none;
}

.hrw-code-grid {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(5px, 1vw, 8px);
  width: 100%;
}

.hrw-code-entry {
  position: relative;
}

.js .hrw-code-grid {
  display: grid;
}

.js .hrw-code-fallback {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: text;
}

.hrw-code-cell {
  display: grid;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 1px solid #9eaaa5;
  border-radius: 9px;
  background: var(--hrw-white);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hrw-code-entry:focus-within .hrw-code-cell[data-active="true"] {
  border-color: var(--hrw-green);
  outline: 3px solid rgba(2, 146, 43, 0.16);
}

.hrw-code-entry:focus-within .hrw-code-grid[data-invalid="true"] .hrw-code-cell[data-active="true"] {
  border-color: var(--hrw-error);
  outline-color: rgba(180, 35, 24, 0.18);
}

.hrw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 9px;
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--hrw-green);
  color: var(--hrw-white);
  font: 500 15px/1.3 "Poppins", Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.hrw-button:hover {
  background: var(--hrw-deep-green);
  transform: translateY(-1px);
}

.hrw-button:active {
  transform: translateY(0);
}

.hrw-support,
.hrw-field-help {
  color: var(--hrw-muted);
  font-size: 12px;
  line-height: 1.55;
}

.hrw-support {
  margin: 22px 0 0;
  padding-top: 19px;
  border-top: 1px solid #e5e9e7;
}

.hrw-field-help {
  margin: 1px 0 0;
}

.hrw-quiet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 16px;
  margin-top: 8px;
}

.hrw-resend-form {
  margin: 0;
}

.hrw-quiet-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--hrw-deep-green);
  font: 500 12px/1.4 "Poppins", Arial, Helvetica, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.hrw-notice,
.hrw-server-notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eaf6ed;
  color: #145c2c;
  font-size: 12px;
  line-height: 1.55;
}

.hrw-server-notice-error {
  background: #feecef;
  color: #952235;
}

.hrw-auth-footer {
  position: absolute;
  bottom: 24px;
  left: var(--hrw-cluster-left);
  width: min(250px, calc(100% - 30px));
  margin: 0;
  color: #78827e;
  font-size: 11px;
  line-height: 1.5;
}

.hrw-visual-side {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 48px clamp(34px, 5vw, 72px);
  background-color: var(--hrw-deep-green);
  background-image:
    linear-gradient(90deg, rgba(16, 39, 31, 0.52), rgba(16, 39, 31, 0.18) 58%, rgba(16, 39, 31, 0.34)),
    linear-gradient(0deg, rgba(16, 39, 31, 0.72), transparent 58%),
    url("email/rotterdam-hero.jpg");
  background-position: center;
  background-size: cover;
}

.hrw-city-copy {
  width: min(520px, 100%);
  margin-left: clamp(210px, 18vw, 290px);
  color: var(--hrw-white);
}

.hrw-city-copy .hrw-eyebrow {
  color: #aeeabb;
}

.hrw-city-copy h2 {
  max-width: 500px;
  font-size: clamp(34px, 4.4vw, 55px);
  line-height: 1.08;
  text-wrap: balance;
}

.hrw-city-copy > p:not(.hrw-eyebrow) {
  max-width: 430px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.65;
}

.hrw-secure-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  color: var(--hrw-white);
  font-size: 12px;
  font-weight: 500;
}

.hrw-shield-icon {
  display: inline-grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.hrw-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 992px) and (max-width: 1100px) {
  :root {
    --hrw-card-width: 400px;
    --hrw-cluster-left: calc(25vw - clamp(40px, 4vw, 58px) - 200px);
  }

  .hrw-city-copy {
    margin-left: 190px;
  }
}

@media (max-width: 991px) {
  .hrw-shell {
    display: block;
  }

  .hrw-visual-side,
  .hrw-auth-footer {
    display: none;
  }

  .hrw-auth-side {
    width: 100%;
    height: 100%;
  }

  .hrw-auth-cluster {
    top: 50%;
    left: 50%;
    width: min(430px, calc(100vw - 80px));
    transform: translate(-50%, -50%);
  }

  .hrw-brand {
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
  }

  .hrw-brand img {
    width: 160px;
  }

  .hrw-auth-card {
    padding: 29px 24px 27px;
    border-radius: 22px;
  }

  .hrw-auth-card h1 {
    font-size: 32px;
  }
}

@media (max-height: 740px) {
  .hrw-auth-card {
    padding: 26px 34px;
  }

  .hrw-auth-card h1 {
    font-size: 36px;
  }

  .hrw-intro {
    margin-top: 9px;
    line-height: 1.5;
  }

  .hrw-form {
    margin-top: 19px;
  }

  .hrw-support {
    margin-top: 15px;
    padding-top: 14px;
  }
}

@media (max-width: 991px) and (max-height: 740px) {
  .hrw-brand {
    margin-bottom: 12px;
  }

  .hrw-auth-card {
    padding: 20px 22px;
  }

  .hrw-auth-card h1 {
    font-size: 29px;
  }

  .hrw-intro {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .hrw-form {
    gap: 6px;
    margin-top: 15px;
  }

  .hrw-form input,
  .hrw-button {
    min-height: 44px;
  }

  .hrw-support {
    margin-top: 12px;
    padding-top: 12px;
  }

  .hrw-notice,
  .hrw-server-notice {
    margin-top: 10px;
    padding: 9px 11px;
  }

  .hrw-quiet-actions {
    margin-top: 2px;
  }
}

@media (max-width: 360px) {
  .hrw-auth-cluster {
    width: calc(100vw - 32px);
  }

  .hrw-auth-card {
    padding-inline: 18px;
  }

  .hrw-auth-card h1 {
    font-size: 28px;
  }

  .hrw-quiet-actions {
    display: grid;
    justify-items: start;
  }
}

@media (max-height: 620px), (min-resolution: 1.8dppx) and (max-width: 991px) {
  .hrw-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .hrw-auth-side {
    min-height: max(100vh, 560px);
    min-height: max(100dvh, 560px);
  }

  .hrw-auth-cluster {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto;
    padding: 20px 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hrw-button {
    transition: none;
  }
}
