@font-face {
  font-family: "Fraunces";
  src: url("/web-static/fonts/Fraunces-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #18211E;
  background: #F7F8F4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(460px, 1.1fr);
}

.auth-story {
  min-height: 100vh;
  padding: clamp(32px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: #f04b3a;
  overflow: hidden;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  object-fit: cover;
}

.auth-story-copy {
  max-width: 620px;
}

.auth-kicker,
.form-kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.auth-story h1 {
  margin: 0;
  max-width: 640px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.75rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-story p:last-child {
  max-width: 470px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.55;
}

.auth-proof {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 650;
}

.auth-main {
  min-height: 100vh;
  padding: clamp(28px, 7vw, 96px);
  display: grid;
  align-items: center;
}

.auth-form {
  width: min(100%, 480px);
  margin: 0 auto;
}

.form-kicker {
  color: #f04b3a;
}

.auth-form h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.form-subtitle {
  margin: 0 0 32px;
  color: #6f6874;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 750;
}

.form-group input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #DDE2DA;
  border-radius: 8px;
  color: #18211E;
  background: #fff;
  font: inherit;
  outline: none;
}

.form-group input:focus {
  border-color: #f04b3a;
  box-shadow: 0 0 0 3px rgba(240, 75, 58, 0.14);
}

.btn-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #f04b3a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-submit:hover {
  background: #d93e30;
}

.btn-submit:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid #356ae6;
  outline-offset: 3px;
}

.error-banner {
  margin-bottom: 22px;
  padding: 12px 14px;
  border-left: 4px solid #F04B3A;
  border-radius: 0 8px 8px 0;
  color: #8F251D;
  background: #FDECE9;
}

.footer-links {
  margin-top: 24px;
  color: #6f6874;
  font-size: 0.92rem;
}

.footer-links a {
  color: #c93429;
  font-weight: 750;
  text-underline-offset: 3px;
}

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

  .auth-story {
    min-height: 300px;
    padding: 28px 24px 34px;
  }

  .auth-story h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .auth-story-copy > p:last-child,
  .auth-proof {
    display: none;
  }

  .auth-main {
    min-height: auto;
    padding: 34px 24px 48px;
  }
}

@media (prefers-color-scheme: dark) {
  body,
  .form-group input {
    color: #F2F5EF;
    background: #151B19;
  }

  .form-subtitle,
  .footer-links {
    color: #A8B2AD;
  }

  .form-group input {
    border-color: #2A3430;
  }

  /* A páprica clara (MesaPalette.paprika dark, #FF7466) é para páprica
     **como texto** sobre superfície escura. Em superfície preenchida com
     texto branco ela piora o contraste, então o painel e o botão seguem na
     páprica de dia. */
  .form-kicker,
  .footer-links a {
    color: #FF7466;
  }
}
