:root {
  --auth-navy: #082750;
  --auth-purple: #8250cf;
}

* { box-sizing: border-box; }

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

body.auth-page {
  margin: 0;
  color: var(--auth-navy);
  font-family: "Manrope", sans-serif;
  background: #fff;
}

.skip-link { position: fixed; z-index: 9999; }

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.12fr) minmax(480px, .88fr);
}

.auth-photo-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  flex-direction: column;
  padding: 34px clamp(38px, 5vw, 82px) 38px;
  color: #fff;
  background-image: url("../images/quem-somos-equipe.jpg");
  background-position: center;
  background-size: cover;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 26, 55, .38) 0%, rgba(8, 31, 67, .22) 32%, rgba(7, 27, 60, .93) 100%),
    linear-gradient(90deg, rgba(42, 20, 78, .38), transparent 70%);
}

.photo-topbar,
.photo-content,
.photo-footer { position: relative; z-index: 1; }

.photo-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}

.photo-brand img {
  width: 66px;
  height: 76px;
  object-fit: contain;
}

.photo-brand strong,
.photo-brand small { display: block; }
.photo-brand strong { font-size: 13px; font-weight: 800; }
.photo-brand small { margin-top: 2px; color: rgba(255,255,255,.76); font-size: 11px; font-weight: 600; }

.photo-content {
  max-width: 710px;
  margin-top: auto;
  padding-top: 90px;
}

.photo-kicker,
.login-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.photo-kicker { color: #d8bcff; }
.photo-content h1 { max-width: 700px; margin-bottom: 18px; font-size: clamp(44px, 5.1vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.055em; }
.photo-content > p { max-width: 650px; margin-bottom: 27px; color: rgba(255,255,255,.84); font-size: 14px; line-height: 1.75; }

.photo-benefits { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-benefits span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; color: rgba(255,255,255,.92); font-size: 11px; font-weight: 700; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.19); border-radius: 10px; backdrop-filter: blur(8px); }
.photo-benefits i { color: #d5b5ff; font-size: 15px; }

.photo-footer { display: flex; align-items: center; gap: 8px; margin-top: 34px; color: rgba(255,255,255,.63); font-size: 10px; }
.photo-footer i { color: #d2b0ff; font-size: 15px; }

.auth-login-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 92px clamp(42px, 5vw, 82px) 55px;
  background:
    radial-gradient(circle at 100% 0%, rgba(146, 92, 218, .11), transparent 27%),
    #fff;
}

.login-topbar {
  position: absolute;
  top: 35px;
  right: clamp(34px, 4vw, 68px);
}

.back-site { display: inline-flex; align-items: center; gap: 9px; color: #53647a; font-size: 11px; font-weight: 800; text-decoration: none; }
.back-site i { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; color: #7d4dc6; background: #f0e8fb; border-radius: 10px; }
.back-site:hover { color: #7447ba; }

.login-panel-content { width: 100%; max-width: 445px; }
.login-icon { display: inline-flex; width: 58px; height: 58px; margin-bottom: 23px; align-items: center; justify-content: center; color: #fff; font-size: 24px; background: linear-gradient(135deg,#9c6be2,#7041be); border-radius: 17px; box-shadow: 0 12px 25px rgba(113,64,190,.25); }
.login-kicker { margin-bottom: 7px; color: #8151cc; }
.login-panel-content h2 { margin-bottom: 8px; font-size: 38px; font-weight: 800; letter-spacing: -.045em; }
.login-intro { margin-bottom: 30px; color: #677386; font-size: 12px; line-height: 1.65; }

.auth-field { margin-bottom: 20px; }
.auth-field label { margin-bottom: 8px; color: #203a60; font-size: 12px; font-weight: 800; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.label-row a { margin-bottom: 8px; color: #7d4fc6; font-size: 11px; font-weight: 800; text-decoration: none; }
.auth-input-wrap { position: relative; }
.auth-input-wrap > i { position: absolute; top: 50%; left: 16px; z-index: 2; color: #8756ce; font-size: 16px; transform: translateY(-50%); }
.auth-input-wrap .form-control { min-height: 55px; padding: 12px 48px 12px 45px; color: #173452; font-size: 13px; background: #fafafd; border: 1px solid #dfe1e8; border-radius: 12px; }
.auth-input-wrap .form-control:focus { background: #fff; border-color: #9362da; box-shadow: 0 0 0 .22rem rgba(132,80,207,.12); }
.password-toggle { position: absolute; top: 50%; right: 10px; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: #697587; background: transparent; border: 0; border-radius: 9px; transform: translateY(-50%); }
.password-toggle:hover { color: #7649bd; background: #f0e8fc; }
.invalid-feedback { font-size: 11px; }

.auth-check { margin: 2px 0 23px; padding-left: 1.7rem; }
.auth-check .form-check-input { width: 1.05rem; height: 1.05rem; margin-left: -1.7rem; border-color: #cfd3dc; }
.auth-check .form-check-input:checked { background-color: #8050ca; border-color: #8050ca; }
.auth-check .form-check-label { color: #687486; font-size: 11px; }

.login-submit { display: flex; width: 100%; min-height: 55px; align-items: center; justify-content: center; gap: 11px; color: #fff; font-size: 13px; font-weight: 800; background: linear-gradient(135deg,#9664dd,#7141bd); border: 0; border-radius: 12px; box-shadow: 0 12px 25px rgba(113,64,190,.25); }
.login-submit:hover,
.login-submit:focus { color: #fff; background: linear-gradient(135deg,#8553cf,#6030a9); transform: translateY(-1px); }

.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 15px; color: #788291; font-size: 10px; }
.login-security i { color: #8352cc; }
.join-account { margin-top: 27px; padding-top: 24px; text-align: center; border-top: 1px solid #eceaf0; }
.join-account span { display: block; margin-bottom: 7px; color: #6e7887; font-size: 11px; }
.join-account a { color: #7647bd; font-size: 12px; font-weight: 800; text-decoration: none; }
.join-account a i { margin-left: 5px; }

.login-demo-message { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 13px 15px; color: #4d4261; background: #f4edff; border: 1px solid #e3d6f6; border-radius: 11px; }
.login-demo-message[hidden] { display: none; }
.login-demo-message > i { flex-shrink: 0; color: #7f4fca; font-size: 17px; }
.login-demo-message strong,
.login-demo-message span { display: block; }
.login-demo-message strong { margin-bottom: 2px; font-size: 11px; }
.login-demo-message span { color: #746b80; font-size: 10px; line-height: 1.45; }

.login-footer { position: absolute; right: clamp(34px, 4vw, 68px); bottom: 24px; left: clamp(34px, 4vw, 68px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8a929e; font-size: 9px; }
.login-footer a { color: #7446b9; font-weight: 800; text-decoration: none; }

@media (max-width: 1100px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr); }
  .auth-photo-panel { padding-right: 42px; padding-left: 42px; }
  .photo-content h1 { font-size: 52px; }
  .auth-login-panel { padding-right: 42px; padding-left: 42px; }
}

@media (min-width: 992px) and (max-height: 800px) {
  .auth-photo-panel { padding-top: 17px; padding-bottom: 18px; }
  .photo-brand img { width: 52px; height: 60px; }
  .photo-content { padding-top: 30px; }
  .photo-content h1 { max-width: 610px; margin-bottom: 12px; font-size: 54px; }
  .photo-content > p { margin-bottom: 17px; font-size: 12px; }
  .photo-benefits span { padding: 8px 10px; font-size: 9px; }
  .photo-footer { margin-top: 18px; }
  .auth-login-panel { padding-top: 58px; padding-bottom: 35px; }
  .login-topbar { top: 14px; }
  .login-icon { width: 50px; height: 50px; margin-bottom: 12px; font-size: 20px; }
  .login-panel-content h2 { font-size: 34px; }
  .login-intro { margin-bottom: 18px; }
  .auth-field { margin-bottom: 14px; }
  .auth-input-wrap .form-control { min-height: 50px; }
  .auth-check { margin-bottom: 16px; }
  .login-submit { min-height: 51px; }
  .login-security { margin-top: 11px; }
  .join-account { margin-top: 17px; padding-top: 15px; }
  .login-footer { bottom: 8px; }
}

@media (max-width: 991.98px) {
  .auth-layout { display: block; }
  .auth-photo-panel { min-height: 560px; padding: 28px 38px 35px; background-position: center 34%; }
  .photo-content { padding-top: 80px; }
  .photo-content h1 { max-width: 650px; font-size: 52px; }
  .auth-login-panel { min-height: 650px; padding: 85px 38px 80px; }
  .login-topbar { top: 25px; right: 38px; }
  .login-footer { right: 38px; bottom: 22px; left: 38px; }
}

@media (max-width: 575.98px) {
  .auth-photo-panel { min-height: 530px; padding: 23px 22px 28px; background-position: 54% center; }
  .photo-brand img { width: 52px; height: 61px; }
  .photo-brand strong { font-size: 11px; }
  .photo-brand small { font-size: 9px; }
  .photo-content { padding-top: 62px; }
  .photo-content h1 { font-size: 39px; }
  .photo-content > p { font-size: 12px; }
  .photo-benefits { gap: 7px; }
  .photo-benefits span { padding: 8px 10px; font-size: 9px; }
  .photo-footer { margin-top: 24px; }
  .auth-login-panel { min-height: 700px; padding: 87px 22px 85px; }
  .login-topbar { top: 24px; right: 22px; }
  .login-panel-content h2 { font-size: 33px; }
  .login-footer { right: 22px; bottom: 20px; left: 22px; }
}

/* Piso de 12px também na experiência de acesso do associado. */
.auth-page :where(
  .photo-brand strong, .photo-brand small, .photo-kicker, .login-kicker,
  .photo-benefits span, .photo-footer, .back-site,
  .label-row a, .invalid-feedback, .auth-check .form-check-label,
  .login-security, .join-account span, .login-demo-message strong,
  .login-demo-message span, .login-footer
) { font-size: 12px; }
