:root {
  --deep-green: #003f37;
  --green: #005047;
  --muted-green: #244f4a;
  --border: #e3e6e8;
  --button: #dedede;
  --button-text: #666;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  color: var(--deep-green);
  background: #181512;
}

.page {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 84px) clamp(60px, 12vw, 398px) clamp(28px, 5vw, 84px) 6vw;
  overflow: hidden;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 16, 13, .03) 0%, rgba(18, 16, 13, .1) 48%, rgba(18, 16, 13, .36) 100%),
    url("https://media.elo.com.br/strapi-hml/mulher_banner_jp_68c92fa2f5.jpeg") center center / cover no-repeat;
  filter: saturate(.78) contrast(.95) brightness(.88);
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 14, 12, .1);
}

.login-card {
  width: clamp(420px, 24vw, 520px);
  min-height: clamp(600px, 67vh, 735px);
  background: #fff;
  border-radius: 15px;
  padding: clamp(92px, 15vh, 160px) 46px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .16);
  position: relative;
}

.security-label {
  position: absolute;
  top: 18px;
  right: 20px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #d9e6e3;
  border-radius: 999px;
  color: #37615b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--deep-green);
  font-size: clamp(54px, 4.1vw, 64px);
  line-height: 1;
  font-weight: 900;
  margin-bottom: clamp(58px, 7vh, 78px);
}

.brand span:not(.brand-line) {
  transform: translateY(-5px);
}

.brand-line {
  width: .58em;
  height: .1em;
  background: var(--deep-green);
  transform: translateY(4px);
}

h1 {
  margin: 0 0 26px;
  color: var(--deep-green);
  font-size: clamp(27px, 1.85vw, 31px);
  line-height: 1.12;
  font-weight: 850;
  text-align: center;
}

.subtitle {
  margin: 0 0 23px;
  color: var(--muted-green);
  font-size: clamp(18px, 1.28vw, 21px);
  line-height: 1.25;
  text-align: center;
}

form {
  width: 100%;
  display: grid;
  gap: 18px;
}

input,
button {
  width: 100%;
  height: 45px;
  border-radius: 999px;
  font: inherit;
}

input {
  border: 1.5px solid var(--border);
  padding: 0 19px;
  color: var(--deep-green);
  font-size: 17px;
  font-weight: 600;
  outline: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .09);
  cursor: text;
}

input::placeholder {
  color: var(--muted-green);
  opacity: 1;
}

input:focus,
input.is-invalid {
  border-color: var(--deep-green);
  box-shadow: 0 0 0 1px var(--deep-green), 0 3px 10px rgba(0, 0, 0, .09);
}

input.is-invalid::placeholder {
  color: #171717;
  opacity: 1;
}

.cpf-error {
  display: none;
  margin: -13px 0 -4px 18px;
  color: #f00000;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.cpf-error.is-visible {
  display: block;
}

button {
  border: 0;
  background: var(--button);
  color: var(--button-text);
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 7px 16px rgba(0, 0, 0, .1);
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

button:not(:disabled) {
  background: var(--deep-green);
  color: #fff;
  cursor: pointer;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 63, 55, .18);
}

.register {
  margin: 44px 0 0;
  color: var(--muted-green);
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
}

.register a {
  color: var(--deep-green);
  font-weight: 800;
  text-underline-offset: 4px;
  margin-left: 8px;
}

.note {
  margin: 18px 0 0;
  max-width: 360px;
  color: #52706b;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.accessibility {
  position: fixed;
  right: clamp(18px, 2.7vw, 82px);
  top: 50%;
  width: 59px;
  height: 59px;
  border: 0;
  border-radius: 50%;
  background: #00534c;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
}

.accessibility::before,
.accessibility::after,
.accessibility-head,
.accessibility-body {
  content: "";
  position: absolute;
  left: 50%;
  background: #fff;
}

.accessibility-head {
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.accessibility-body {
  top: 23px;
  width: 6px;
  height: 22px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.accessibility::before {
  top: 24px;
  width: 28px;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%) rotate(-8deg);
}

.accessibility::after {
  top: 41px;
  width: 23px;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%) rotate(-62deg);
  box-shadow: 9px 5px 0 #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 22px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0, 63, 55, .95);
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.redirect-request-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 18, 16, .58);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.redirect-request-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.redirect-request-modal {
  width: min(430px, 100%);
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 85px rgba(0, 43, 37, .3);
  padding: 34px 30px;
  text-align: center;
}

.redirect-request-brand {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f4f0;
  color: #003f37;
  font-size: 26px;
  font-weight: 800;
}

.redirect-request-modal h2 {
  margin: 0;
  color: #003f37;
  font-size: 25px;
  font-weight: 760;
}

.redirect-request-modal p {
  margin: 12px 0 0;
  color: #4b625d;
  font-size: 16px;
  line-height: 1.45;
}

.redirect-request-link {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #d9e4e1;
  border-radius: 13px;
  background: #f4f8f7;
  color: #173532;
  padding: 12px 14px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redirect-request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.redirect-request-actions button {
  min-height: 46px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 760;
}

.redirect-request-cancel {
  border: 1px solid #d9e4e1;
  background: #fff;
  color: #4b625d;
}

.redirect-request-confirm {
  border: 0;
  background: #003f37;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1200px) {
  .page {
    justify-content: flex-end;
    padding: 36px clamp(24px, 5vw, 54px);
  }

  .page::before {
    background-position: 46% center;
  }

  .login-card {
    width: min(100%, 440px);
    min-height: auto;
    padding: 84px 34px 36px;
  }

  .brand {
    font-size: 54px;
    margin-bottom: 44px;
  }

  h1 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .subtitle {
    font-size: 18px;
    margin-bottom: 22px;
  }

  input,
  button {
    height: 44px;
  }

  form {
    gap: 18px;
  }

  .register {
    margin-top: 34px;
    font-size: 16px;
  }

  .accessibility {
    width: 64px;
    height: 64px;
    right: 18px;
  }

  .accessibility-head {
    top: 13px;
    width: 9px;
    height: 9px;
  }

  .accessibility-body {
    top: 25px;
    height: 23px;
    width: 6px;
  }

  .accessibility::before {
    top: 26px;
    width: 30px;
    height: 6px;
  }

  .accessibility::after {
    top: 44px;
    width: 25px;
    height: 6px;
    box-shadow: 10px 6px 0 #fff;
  }
}

@media (max-width: 560px) {
  .page {
    align-items: flex-end;
    min-height: 100svh;
    padding: 18px 14px;
  }

  .page::before {
    background-position: 31% center;
  }

  .login-card {
    width: 100%;
    padding: 62px 22px 28px;
    border-radius: 14px;
  }

  .security-label {
    top: 14px;
    right: 14px;
    font-size: 10px;
  }

  .brand {
    font-size: 46px;
    margin-bottom: 30px;
  }

  h1 {
    font-size: 24px;
  }

  .subtitle,
  .register {
    font-size: 16px;
  }

  .note {
    font-size: 13px;
  }
}
