.er-auth-page {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: #0b2345;
  background: #edf7fb;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.er-auth-page,
.er-auth-page * {
  box-sizing: border-box;
}

.er-auth-page .skip-link {
  position: fixed;
  top: -100px;
  left: 14px;
  z-index: 1000;
  padding: 9px 12px;
  border-radius: 9px;
  color: #fff;
  background: #087e54;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.er-auth-page .skip-link:focus {
  top: 14px;
}

.er-auth-layout {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 28px 20px 18px;
}

.er-auth-card {
  position: relative;
  width: min(720px, 100%);
  min-height: 700px;
  overflow: hidden;
  border: 1px solid #b9d9e9;
  border-radius: 22px;
  background-color: #fbfeff;
  background-image: url("../images/auth/electroruta-auth-landscape-v2.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  box-shadow: 0 20px 55px rgba(35, 75, 108, .14);
}

.er-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 253, 255, .14);
  pointer-events: none;
}

.er-auth-card--access,
.er-auth-card--advertiser-register {
  min-height: 0;
}

.er-auth-card--access .er-auth-card__content {
  padding-bottom: 128px;
}

.er-auth-card--admin .er-auth-card__content {
  padding-bottom: 146px;
}

.er-auth-card--advertiser-register {
  width: min(820px, 100%);
}

.er-auth-card--advertiser-register .er-auth-card__content {
  width: min(640px, calc(100% - 48px));
  padding-bottom: 84px;
}

.er-auth-card__content {
  position: relative;
  z-index: 1;
  width: min(472px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.er-auth-brand {
  display: block;
  width: 202px;
  margin: 0 auto 14px;
}

.er-auth-brand img {
  width: 100%;
  height: auto;
}

.er-auth-heading {
  margin-bottom: 20px;
  text-align: center;
}

.er-auth-heading h1 {
  margin: 0;
  color: #071d43;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.8rem, 3.7vw, 2.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.er-auth-heading p {
  max-width: 38ch;
  margin: 7px auto 0;
  color: #3e5c7c;
  font-size: .94rem;
  line-height: 1.45;
}

.er-auth-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #f1b7b3;
  border-radius: 10px;
  color: #9e2f27;
  background: rgba(255, 244, 243, .94);
  font-size: .82rem;
  line-height: 1.4;
}

.er-auth-message--ok {
  border-color: #a8dfca;
  color: #086245;
  background: #effbf6;
}

.er-auth-email-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  border: 1px solid #d8e8e2;
  border-radius: 12px;
  color: #294866;
  background: rgba(255, 255, 255, .9);
  font-size: .84rem;
  line-height: 1.45;
}

.er-auth-form {
  display: grid;
  gap: 13px;
}

.er-auth-form--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.er-auth-field--full {
  grid-column: 1 / -1;
}

.er-auth-field,
.er-auth-page .er-password-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.er-auth-field > label,
.er-auth-page .er-password-label {
  color: #0b2345;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.25;
}

.er-auth-control,
.er-auth-page .er-password-control {
  position: relative;
  min-width: 0;
}

.er-auth-control > img,
.er-auth-page .er-password-leading-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 2;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.er-auth-control input,
.er-auth-page .er-password-control > input {
  width: 100%;
  min-height: 46px;
  padding: 10px 46px 10px 42px !important;
  border: 1px solid #aec7da;
  border-radius: 10px;
  outline: none;
  color: #102947;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 2px rgba(29, 65, 94, .04);
  font: inherit;
  font-size: .9rem;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.er-auth-control input::placeholder,
.er-auth-page .er-password-control > input::placeholder {
  color: #7f95aa;
  opacity: 1;
}

.er-auth-control input:hover,
.er-auth-page .er-password-control > input:hover {
  border-color: #7fa7c1;
  background: #fff;
}

.er-auth-control input:focus-visible,
.er-auth-page .er-password-control > input:focus-visible {
  border-color: #087e69;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(9, 166, 111, .16);
}

.er-auth-page .er-password-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  color: #294664;
  background: transparent;
  box-shadow: none;
}

.er-auth-page .er-password-toggle:hover {
  border: 0;
  background: #edf8f5;
}

.er-auth-page .er-password-toggle:focus-visible {
  outline: 3px solid rgba(9, 166, 111, .22);
  outline-offset: 1px;
}

.er-auth-page .er-password-toggle img {
  width: 19px;
  height: 19px;
}

.er-auth-page .er-password-toggle [data-password-toggle-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.er-auth-page .er-password-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 20px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.er-auth-page .er-password-requirements li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  color: #163654;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.25;
}

.er-auth-page .er-password-requirements li[data-password-requirement="maximum"] {
  display: none;
}

.er-auth-page .er-password-requirements img {
  width: 17px;
  height: 17px;
}

.er-auth-page .er-password-requirements li small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.er-auth-page .er-password-requirements li[data-state="unmet"] {
  color: #8a3c32;
}

.er-auth-page .er-password-help {
  margin-top: -1px;
  color: #52708c;
  font-size: .72rem !important;
  line-height: 1.35;
}

.er-auth-page .er-password-confirmation-status {
  margin-top: -1px;
  font-size: .72rem !important;
}

.er-auth-consent {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #294866;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.45;
}

.er-auth-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #079669;
}

.er-auth-consent a {
  color: #087e54;
  font-weight: 750;
}

.er-auth-consent input:focus-visible {
  outline: 3px solid rgba(9, 166, 111, .24);
  outline-offset: 2px;
}

.er-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  padding: 11px 20px;
  border: 1px solid #05a66c;
  border-radius: 11px;
  color: #fff;
  background: #08ad70;
  box-shadow: 0 8px 20px rgba(8, 173, 112, .18);
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.er-auth-submit:hover {
  background: #078d60;
  box-shadow: 0 10px 22px rgba(7, 141, 96, .22);
  transform: translateY(-1px);
}

.er-auth-submit:focus-visible {
  outline: 3px solid rgba(6, 141, 96, .25);
  outline-offset: 3px;
}

.er-auth-switch {
  display: table;
  margin: 14px auto 0;
  padding: 6px 11px;
  border: 1px solid rgba(185, 217, 233, .72);
  border-radius: 999px;
  color: #294866;
  background: rgba(255, 255, 255, .86);
  text-align: center;
  font-size: .82rem;
}

.er-auth-switch a {
  color: #087e54;
  font-weight: 800;
}

.er-auth-followups {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-top: 14px;
}

.er-auth-followups .er-auth-switch {
  margin-top: 0;
}

.er-auth-secondary-link {
  color: #315775;
  font-size: .76rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.er-auth-secondary-link:hover {
  color: #087e54;
  text-decoration: underline;
}

.er-auth-secondary-link:focus-visible,
.er-auth-switch a:focus-visible {
  outline: 2px solid #079669;
  outline-offset: 3px;
}

.er-auth-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  max-width: 720px;
  margin-top: 12px;
  color: #4b6983;
  font-size: .72rem;
}

.er-auth-legal a,
.er-auth-legal button {
  padding: 2px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.er-auth-legal a:hover,
.er-auth-legal button:hover {
  color: #067a50;
  text-decoration: underline;
}

.er-auth-legal a:focus-visible,
.er-auth-legal button:focus-visible {
  outline: 2px solid #079669;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .er-auth-layout {
    align-content: start;
    padding: 12px 12px 16px;
  }

  .er-auth-card {
    min-height: 0;
    border-radius: 20px;
    background-size: 100% auto;
  }

  .er-auth-card__content {
    width: min(calc(100% - 40px), 440px);
    padding: 22px 0 96px;
  }

  .er-auth-card--access .er-auth-card__content,
  .er-auth-card--admin .er-auth-card__content {
    padding-bottom: 92px;
  }

  .er-auth-card--advertiser-register .er-auth-card__content {
    width: min(calc(100% - 40px), 440px);
    padding-bottom: 82px;
  }

  .er-auth-brand {
    width: 170px;
    margin-bottom: 12px;
  }

  .er-auth-heading {
    margin-bottom: 18px;
  }

  .er-auth-heading h1 {
    font-size: 1.55rem;
  }

  .er-auth-heading p {
    max-width: 31ch;
    font-size: .82rem;
  }

  .er-auth-form {
    gap: 12px;
  }

  .er-auth-page .er-password-requirements {
    gap: 7px 12px;
  }

  .er-auth-page .er-password-requirements li {
    font-size: .7rem;
  }

  .er-auth-legal {
    gap: 6px 12px;
    margin-top: 9px;
  }
}

@media (max-width: 720px) {
  .er-auth-form--two {
    grid-template-columns: 1fr;
  }

  .er-auth-form--two > * {
    grid-column: 1;
  }
}

@media (max-width: 360px) {
  .er-auth-card__content {
    width: calc(100% - 28px);
  }

  .er-auth-page .er-password-requirements {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .er-auth-submit,
  .er-auth-control input,
  .er-auth-page .er-password-control > input {
    transition: none;
  }
}
