:root {
  --login-navy-950: #071d31;
  --login-navy-800: #0b3b66;
  --login-blue: #1473d2;
  --login-blue-light: #2387e7;
  --login-ink: #102a43;
  --login-muted: #60758a;
  --login-line: #d7e2ec;
  --login-surface: #f4f8fb;
}

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

body.login-page {
  display: block;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  overflow-x: hidden;
  color: var(--login-ink);
  background: var(--login-surface);
  font-family: "Poppins", "Segoe UI", sans-serif;
}

.login-page button,
.login-page input {
  font: inherit;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(30rem, 1.08fr) minmax(27rem, 0.92fr);
  min-height: 100vh;
  min-height: 100svh;
}

.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(2rem, 4vw, 4.25rem) clamp(2rem, 5.5vw, 6.5rem);
  overflow: hidden;
  color: #fff;

  background:
    linear-gradient(
      155deg,
      #061b31 0%,
      #082d50 42%,
      #0a4f83 72%,
      #1473b8 100%
    );

  isolation: isolate;
}

/* Blocos geométricos arredondados */
.auth-showcase::before {
  position: absolute;
  z-index: -1;
  top: 4%;
  left: -6%;
  width: 54%;
  height: 43%;
  content: "";
  pointer-events: none;

  border-radius: 0 0 4rem 0;

  background:
    linear-gradient(
      135deg,
      rgba(68, 158, 225, 0.23),
      rgba(34, 117, 184, 0.08)
    );

  box-shadow:
    12rem 5rem 0 rgba(83, 170, 231, 0.08),
    28rem 16rem 0 rgba(42, 132, 203, 0.12);
}

/* Forma clara inferior */
.auth-showcase::after {
  position: absolute;
  z-index: -1;
  right: -7rem;
  bottom: -7rem;
  width: 26rem;
  height: 26rem;
  content: "";
  pointer-events: none;

  border-radius: 45% 0 0 0;

  background:
    linear-gradient(
      145deg,
      rgba(80, 177, 234, 0.22),
      rgba(67, 156, 219, 0.07)
    );
}

.auth-brand {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
}

.auth-brand img {
  width: auto;
  height: clamp(2.25rem, 3vw, 3rem);
  margin: 0;
  filter: brightness(0) invert(1);
}

.showcase-copy {
  position: relative;
  width: min(100%, 42rem);
  margin: clamp(4rem, 12vh, 8.5rem) 0 3rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: #78bfff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.showcase-copy h1 {
  max-width: 38rem;
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.showcase-copy p {
  max-width: 34rem;
  color: rgba(230, 244, 255, 0.82);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.75;
}

.showcase-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  list-style: none;
}

.showcase-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: auto;
  padding: 0;

  color: rgba(238, 248, 255, 0.9);
  border: 0;
  border-radius: 0;
  background: transparent;

  font-size: 0.74rem;
  font-weight: 500;
  transition: none;
}

.showcase-benefits li:hover {
  border: 0;
  background: transparent;
  transform: none;
}

.showcase-benefits i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;

  color: #fff;
  border: 0;
  border-radius: 50%;
  background: rgba(54, 157, 231, 0.55);
  font-size: 0.82rem;
}

.auth-access {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: clamp(2rem, 6vw, 6rem);
  background:
    linear-gradient(rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 90% 10%, #d9ecfb 0, transparent 25rem),
    var(--login-surface);
}

.login-page .login-container {
  width: min(100%, 31rem);
  max-width: none;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.login-page .footer {
  display: none;
}

.mobile-brand {
  display: none;
  margin-bottom: 2rem;
}

.mobile-brand img {
  width: auto;
  height: 2.45rem;
  margin: 0;
}

.login-heading {
  margin-bottom: 2rem;
}

.login-heading .auth-eyebrow {
  margin-bottom: 0.65rem;
  color: var(--login-blue);
}

.login-page .login-heading h1 {
  margin-bottom: 0.55rem;
  color: var(--login-ink);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.login-heading p {
  color: var(--login-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.login-page .form-group {
  margin-bottom: 1.15rem;
}

.login-page .form-group label {
  display: block;
  margin-bottom: 0.45rem;
  color: #304a61;
  font-size: 0.76rem;
  font-weight: 600;
}

.login-page .input-shell {
  position: relative;
}

.login-page .input-shell > i {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: #7f96a9;
  font-size: 1.15rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-page .form-group input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 1rem 0.85rem 3rem;
  color: var(--login-ink);
  border: 1px solid var(--login-line);
  border-radius: 0.7rem;
  outline: none;
  background: #f9fbfd;
  font-size: 0.9rem;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-page .form-group input::placeholder {
  color: #91a2b1;
}

.login-page .form-group input:focus {
  border-color: var(--login-blue-light);
  background: #fff;
  box-shadow: 0 0 0 0.22rem rgba(35, 135, 231, 0.13);
}

.login-page .password-input {
  padding-right: 4.8rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  padding: 0.35rem 0.45rem;
  color: var(--login-blue);
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #dceeff;
  outline: none;
}

.login-page .login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.35rem;
  margin-top: 0.35rem;
  padding: 0.85rem 1.15rem;
  color: #fff;
  border: 0;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--login-blue), #0963b9);
  box-shadow: 0 0.7rem 1.5rem rgba(20, 115, 210, 0.2);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.login-page .login-btn:hover {
  background: linear-gradient(135deg, var(--login-blue), #0963b9);
  box-shadow: 0 0.85rem 1.75rem rgba(20, 115, 210, 0.27);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: -0.65rem 0 1.15rem;
  padding: 0.7rem 0.8rem;
  color: #8a2f2f;
  border: 1px solid #efc9c9;
  border-radius: 0.55rem;
  background: #fff5f5;
  font-size: 0.75rem;
  line-height: 1.45;
}

.auth-error i {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  font-size: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
  color: #8798a7;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1 1 auto;
  height: 1px;
  background: var(--login-line);
  content: "";
}

.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.8rem 1.15rem;
  color: #253f57;
  border: 1px solid #cbd8e3;
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 0.2rem 0.65rem rgba(16, 42, 67, 0.06);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.google-login-btn:hover,
.google-login-btn:focus-visible {
  color: #173d5f;
  border-color: #8db7d8;
  outline: none;
  background: #f8fbfe;
  box-shadow: 0 0 0 0.22rem rgba(35, 135, 231, 0.1);
}

.google-login-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.google-login-note {
  margin-top: 0.55rem;
  color: #8495a4;
  font-size: 0.68rem;
  text-align: center;
}

.access-help {
  margin-top: 1.6rem;
  color: #74889a;
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}

.access-help a {
  color: var(--login-blue);
  font-weight: 600;
  text-decoration: none;
}

.access-help a:hover {
  text-decoration: underline;
}

.access-signature {
  margin-top: 2.5rem;
  color: #a0afbb;
  font-size: 0.66rem;
  text-align: center;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: minmax(22rem, 0.82fr) minmax(25rem, 1.18fr);
  }

  .auth-showcase {
    padding: 2.5rem;
  }

  .showcase-copy h1 {
    font-size: clamp(2.15rem, 4.8vw, 3.5rem);
  }

  .showcase-benefits {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 721px) and (max-width: 1400px) and (min-resolution: 1.25dppx) {
  :root {
    font-size: 11.5px;
  }
}

@media (min-width: 721px) and (max-width: 1400px) and (max-resolution: 1.24dppx) {
  :root {
    font-size: 13px;
  }
}

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

  .auth-showcase {
    min-height: auto;
    padding: 1.5rem 1.4rem 2rem;
  }

  .auth-showcase > .auth-brand,
  .showcase-benefits {
    display: none;
  }

  .showcase-copy {
    margin: 0;
  }

  .showcase-copy .auth-eyebrow {
    margin-bottom: 0.55rem;
  }

  .showcase-copy h1 {
    max-width: 31rem;
    margin-bottom: 0.65rem;
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }

  .showcase-copy p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .auth-access {
    min-height: calc(100svh - 12.7rem);
    padding: 2rem 1.4rem 2.5rem;
    place-items: start center;
  }

  .mobile-brand {
    display: block;
  }
}

@media (max-width: 420px) {
  .auth-showcase,
  .auth-access {
    padding-inline: 1.1rem;
  }

  .login-heading {
    margin-bottom: 1.5rem;
  }

  .login-page .login-heading h1 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
