/* Login em tela inteira, inspirado na identidade MaxAfiliados. */
body.login-page {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  color: #f8fafc;
  background: #061b3a;
  overflow: auto;
}
.fullscreen-login {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -30%, #1e3a8a 0%, transparent 65%),
    linear-gradient(155deg, #062b60, #03142d 75%);
}
.fullscreen-login::before,
.fullscreen-login::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 60vw;
  height: 110vh;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.1),
    rgba(6, 182, 212, 0.015)
  );
  transform: rotate(38deg);
}
.fullscreen-login::before {
  top: -60%;
  left: -35%;
}
.fullscreen-login::after {
  bottom: -60%;
  right: -35%;
}
.login-page .login-content {
  width: min(100%, 420px);
}
.login-logo {
  display: block;
  margin: 0 0 30px;
  padding: 0 14px 26px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.12);
}
.login-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.login-page .login-heading {
  margin: 0 0 26px;
}
.login-page .login-heading h1 {
  margin: 0 0 8px;
  font-family: Manrope, sans-serif;
  font-size: clamp(25px, 4vw, 29px);
  line-height: 1.3;
  letter-spacing: -0.8px;
}
.login-page .login-heading p {
  margin: 0;
  color: #b9cbe2;
  font-size: 15px;
}
.login-page .field {
  margin-bottom: 17px;
}
.login-page .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.login-page .input-wrap input {
  height: 56px;
  padding-left: 54px;
  border: 1px solid #294c77;
  border-radius: 13px;
  background: rgba(13, 43, 80, 0.6);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(59, 130, 246, 0.07),
    0 4px 12px rgba(0, 0, 0, 0.12);
  font-size: 15px;
}
.login-page .input-wrap input::placeholder {
  color: #b9cbe2;
  opacity: 1;
}
.login-page .input-wrap > svg {
  left: 18px;
  width: 23px;
  height: 23px;
  stroke: #b9cbe2;
}
.login-page .input-wrap input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}
.login-page .input-wrap input:autofill {
  -webkit-text-fill-color: #ffffff;
  box-shadow: inset 0 0 0 1000px #0d2b50;
}
.login-page .password-toggle {
  color: #79b9e1;
}
.login-page .password-toggle:hover {
  background: rgba(6, 182, 212, 0.12);
  color: #ffffff;
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 21px 0 29px;
  font-size: 13px;
}
.login-page .check-row {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
}
.login-page .custom-check {
  width: 19px;
  height: 19px;
  border-color: #49749e;
  background: #0d2b50;
}
.login-page .check-row input:checked + .custom-check {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #0f172a;
}
.login-options a,
.login-page .signup a {
  color: #38d7ee;
  font-weight: 600;
}
.login-options a {
  text-decoration: none;
}
.login-options a:hover,
.login-page .signup a:hover {
  color: #a5f3fc;
  text-decoration: underline;
}
.login-page .submit-button {
  height: 58px;
  color: #03142d;
  background: linear-gradient(110deg, #06c6dc, #06b6d4);
  border: 1px solid #27d4ec;
  border-radius: 13px;
  box-shadow: 0 7px 24px rgba(6, 182, 212, 0.16);
  font-size: 16px;
}
.login-page .submit-button:hover {
  background: #38d7ee;
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.26);
}
.login-page .submit-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.login-page .divider {
  margin: 26px 0;
  color: #a5b9d4;
  font-size: 13px;
}
.login-page .divider::before,
.login-page .divider::after {
  background: #304561;
}
.login-page .google-button {
  height: 54px;
  color: #f8fafc;
  background: transparent;
  border: 1px solid #536b8c;
  border-radius: 12px;
  font-size: 14px;
}
.login-page .google-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #9ab3d3;
}
.login-page .google-button svg {
  width: 23px;
  height: 23px;
}
.login-page .signup {
  margin: 30px 0 0;
  color: #b9cbe2;
  font-size: 14px;
  line-height: 1.6;
}
.login-page .signup a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-page :is(a, button):focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 4px;
}
.login-page .toast {
  background: #1e3a8a;
  border: 1px solid #06b6d4;
}
.login-page .login-heading p {
  line-height: 1.6;
}
.login-page .terms-row {
  margin: 20px 0 24px;
  color: #cbd5e1;
  line-height: 1.6;
}
.login-page .terms-row a {
  color: #38d7ee;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-page .terms-row input:checked + .custom-check {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #0f172a;
}
.login-page .terms-row input:focus-visible + .custom-check {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .fullscreen-login {
    padding: 30px 24px;
  }
  .login-logo {
    margin-bottom: 25px;
    padding: 0 6px 24px;
  }
  .login-options,
  .login-page .check-row {
    font-size: 12px;
  }
}
.login-page .legal-links {
  margin-top: 24px;
  color: #b8c9e0;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.login-page .legal-links p { margin: 0 0 10px; }
.login-page .legal-links nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.login-page .legal-links a { color: #67e8f9; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 360px) {
  .fullscreen-login {
    padding-inline: 18px;
  }
  .login-options {
    gap: 8px;
  }
}
@media (min-width: 481px) and (max-height: 800px) {
  .fullscreen-login {
    padding-block: 24px;
  }
  .login-logo {
    padding-bottom: 18px;
    margin-bottom: 22px;
  }
  .login-logo img {
    width: 330px;
    max-width: 100%;
    margin-inline: auto;
  }
  .login-page .login-heading {
    margin-bottom: 22px;
  }
  .login-options {
    margin-block: 18px 22px;
  }
  .login-page .divider {
    margin-block: 20px;
  }
  .login-page .signup {
    margin-top: 22px;
  }
  .login-page .signup-content .login-logo img {
    width: 270px;
  }
  .login-page .signup-content .login-logo {
    padding-bottom: 14px;
    margin-bottom: 18px;
  }
  .login-page .signup-content .field {
    margin-bottom: 12px;
  }
  .login-page .signup-content .terms-row {
    margin-block: 16px 18px;
  }
  .login-page .signup-content .divider {
    margin-block: 16px;
  }
}
