.page-login {
  background:
    radial-gradient(circle at 16% 10%, rgba(209, 124, 43, 0.18), transparent 28%),
    linear-gradient(135deg, #fff 0%, var(--gray-50) 45%, var(--orange-50) 100%);
}

.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;
}

.login-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.86fr);
  align-items: stretch;
  overflow: visible;
  background: var(--white);
}

.login-visual {
  position: relative;
  min-height: 650px;
  padding: 54px 56px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 26, 56, 0.78) 0%, rgba(15, 26, 56, 0.54) 42%, rgba(15, 26, 56, 0.1) 100%),
    url("../../images/banners/fundo-login-esquerda.png") center / cover no-repeat;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 50%, rgba(0, 0, 0, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(15, 26, 56, 0.08), rgba(15, 26, 56, 0.34));
  z-index: -1;
}

.login-visual-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.login-visual h1 {
  margin: 20px 0 18px;
  color: var(--white);
  font-size: 3.85rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.login-visual p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

.login-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 620px;
}

.login-benefit {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.login-benefit strong {
  display: block;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
}

.login-benefit span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 600;
}

.login-form-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 42px;
  background: var(--white);
}

.login-form-card {
  width: 100%;
  max-width: 480px;
}

.login-form-header {
  margin-bottom: 24px;
  text-align: center;
}

.login-form-header h2 {
  margin: 0 0 10px;
  color: var(--blue-900);
  font-size: 2rem;
}

.login-form-header p {
  margin: 0 auto;
  max-width: 360px;
  color: var(--gray-600);
  font-size: 0.96rem;
}

.auth-social-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-google-btn,
.auth-facebook-btn {
  margin-bottom: 0;
}

.page-login .auth-google-btn {
  height: 50px;
}

.page-login .auth-divider {
  margin-bottom: 20px;
}

.page-login .auth-group {
  margin-bottom: 16px;
}

.page-login .auth-input {
  height: 50px;
}

.page-login .auth-switch {
  margin-top: 24px;
  padding-top: 20px;
}

.auth-facebook-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 50px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--gray-100);
  color: var(--gray-500);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: not-allowed;
}

.auth-facebook-btn {
  position: relative;
}

.facebook-soon {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  transform-origin: bottom center;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.facebook-soon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--gray-900);
}

.auth-facebook-btn:hover .facebook-soon,
.auth-facebook-btn:focus-visible .facebook-soon {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.auth-input {
  padding-left: 16px !important;
}

.auth-icon {
  display: none;
}

.auth-submit-btn {
  margin-top: 4px;
}

.auth-message-success {
  color: var(--success-dark) !important;
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
}

.login-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--gray-500);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.login-back-link:hover {
  color: var(--orange-600);
}

.page-login .footer {
  margin-top: 0;
}

.login-info-banner {
  position: relative;
  background:
    linear-gradient(135deg, rgba(25, 39, 82, 0.94) 0%, rgba(15, 26, 56, 0.98) 100%),
    var(--blue-900);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
  margin-top: 0;
}

.login-info-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32'%3E%3Crect x='1' y='1' width='30' height='14' rx='1.5' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Crect x='33' y='1' width='30' height='14' rx='1.5' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Crect x='-15' y='17' width='30' height='14' rx='1.5' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Crect x='17' y='17' width='30' height='14' rx='1.5' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Crect x='49' y='17' width='30' height='14' rx='1.5' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 64px 32px;
  opacity: 0.95;
  pointer-events: none;
}

.login-info-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 0%, rgba(209, 124, 43, 0.2), transparent 30%),
    radial-gradient(circle at 78% 100%, rgba(255, 255, 255, 0.08), transparent 26%);
  pointer-events: none;
}

.login-info-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.login-info-title {
  margin: 0 0 16px;
  color: var(--white) !important;
  font-size: 2rem;
  font-weight: 800;
}

.login-info-text {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--gray-300);
  font-size: 1.08rem;
  line-height: 1.6;
}

.login-info-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.login-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.login-info-btn-primary {
  background: var(--orange-500);
  color: var(--white);
  border: 2px solid var(--orange-500);
}

.login-info-btn-primary:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: var(--white);
  transform: translateY(-2px);
}

.login-info-btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.login-info-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* Captcha modal (mobile) */
.captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.captcha-modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px 24px;
  max-width: 360px;
  width: calc(100% - 48px);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  animation: captchaModalIn 0.2s ease;
}

@keyframes captchaModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.captcha-modal-title {
  margin: 0 0 8px;
  color: var(--blue-900);
  font-size: 1.15rem;
  font-weight: 700;
}

.captcha-modal-desc {
  margin: 0 0 24px;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

#captchaModalWidget {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin-bottom: 20px;
}

.captcha-modal-cancel {
  background: none;
  border: none;
  color: var(--gray-500);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
}

.captcha-modal-cancel:hover {
  color: var(--gray-700);
}

@media (min-width: 1600px) {
  .login-visual {
    min-height: 720px;
    padding: 64px 66px;
  }

  .login-visual h1 {
    font-size: 4.25rem;
  }

}

@media (max-width: 1380px) {
  .login-page-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  }

  .login-visual {
    padding: 42px 46px;
  }

  .login-visual h1 {
    font-size: 3.25rem;
  }

  .login-benefits {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 1180px) {
  .login-page-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-form-panel {
    padding: 40px 20px 36px;
  }
}

@media (max-width: 700px) {
  .login-visual {
    padding: 36px 20px 48px;
  }

  .login-benefits {
    grid-template-columns: 1fr;
  }

  .auth-social-stack {
    grid-template-columns: 1fr;
  }

  .login-form-header h2 {
    font-size: 1.65rem;
  }

  .login-info-banner {
    padding: 44px 0;
  }

  .login-info-title {
    font-size: 1.55rem;
  }

  .login-info-text {
    font-size: 0.98rem;
  }

  .login-info-btn {
    width: 100%;
  }
}

@media (max-height: 820px) and (min-width: 1181px) {
  .login-visual {
    min-height: 590px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .login-visual h1 {
    font-size: 3.15rem;
  }

  .login-benefits {
    margin-top: 24px;
  }

  .login-form-panel {
    align-items: start;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .login-form-header {
    margin-bottom: 18px;
  }

  .auth-social-stack {
    margin-bottom: 16px;
  }
}
