:root {
  --green: #16b843;
  --green-dark: #0d8d37;
  --green-soft: #eefbf2;
  --text: #0f172a;
  --muted: #667085;
  --line: #d9e4dc;
  --line-soft: #e8efe9;
  --bg: #f7faf8;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(22, 184, 67, 0.07), transparent 32%),
    linear-gradient(180deg, #f7faf8 0%, #f4f7f5 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(760px, 1.45fr) minmax(420px, 0.55fr);
}

.login-brand-panel {
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(15, 23, 42, 0.05);
  background:
    linear-gradient(145deg, rgba(22, 184, 67, 0.09), rgba(255, 255, 255, 0.96) 50%),
    #f9fffb;
}

.brand-badge {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22, 184, 67, 0.09);
  color: var(--green-dark);
  border: 1px solid rgba(22, 184, 67, 0.12);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 24px;
}

.brand-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
}

.login-brand-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.login-brand-panel > p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.brand-features {
  display: grid;
  gap: 14px;
  margin-top: 38px;
  max-width: 640px;
}

.feature-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.feature-card i {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 20px;
}

.feature-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.feature-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 42px 56px 42px 28px;
}

.login-card {
  width: min(460px, 100%);
  margin-left: auto;
  padding: 34px;
  border-radius: 30px;
  border: 1px solid var(--line-soft);
  background: transparent;
  box-shadow: none;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(22, 184, 67, 0.16);
}

.login-card-header h2 {
  margin: 18px 0 10px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.login-card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.login-form {
  margin-top: 28px;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 14px;
  color: #991b1b;
  background: rgba(254, 242, 242, 0.92);
  font-size: 14px;
  font-weight: 700;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label,
.remember-row span {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.input-shell {
  min-height: 54px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fbfdfc;
  transition: 0.18s ease;
}

.password-shell {
  grid-template-columns: 20px 1fr auto;
}

.input-shell:focus-within {
  border-color: rgba(22, 184, 67, 0.42);
  box-shadow: 0 0 0 4px rgba(22, 184, 67, 0.08);
  background: #fff;
}

.input-shell i {
  color: #64748b;
}

.input-shell input {
  border: 0;
  outline: 0;
  min-height: 52px;
  background: transparent;
  color: var(--text);
  width: 100%;
}

.password-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 22px;
  cursor: pointer;
}

.remember-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.login-btn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green), #13a93c);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 18px 36px rgba(22, 184, 67, 0.2);
  cursor: pointer;
}

.login-btn:hover {
  transform: translateY(-1px);
}

.login-card-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.footer-info i {
  color: var(--green-dark);
}

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

  .login-brand-panel {
    padding: 34px 22px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  }

  .login-form-panel {
    padding: 24px 16px 36px;
  }

  .login-card {
    padding: 26px 20px;
    border-radius: 24px;
  }
}


@media (min-width: 1280px) {
  .login-brand-panel {
    padding-right: 72px;
  }

  .login-form-panel {
    padding-right: 72px;
  }
}


/* Imagem real da mulher na área vazia da tela de login */
.login-form-panel {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
}

.login-hero-photo {
  position: absolute;
  left: 0;
  top: 50%;
  width: min(560px, 58%);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-hero-photo::before {
  content: '';
  position: absolute;
  width: 86%;
  height: 76%;
  border-radius: 44px;
  background: radial-gradient(circle at center, rgba(22, 184, 67, 0.12), rgba(22, 184, 67, 0.035) 62%, transparent 78%);
  filter: blur(14px);
  z-index: -1;
}

.login-hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 26px 38px rgba(15, 23, 42, 0.08));
}

.login-card {
  position: relative;
  z-index: 2;
}

@media (min-width: 1280px) {
  .login-hero-photo {
    width: min(620px, 60%);
    left: 6px;
  }
}

@media (max-width: 1180px) {
  .login-hero-photo {
    opacity: 0.28;
    width: 560px;
    left: -120px;
  }
}

@media (max-width: 980px) {
  .login-form-panel {
    flex-direction: column;
    align-items: center;
  }

  .login-hero-photo {
    position: relative;
    left: auto;
    top: auto;
    width: min(420px, 100%);
    transform: none;
    opacity: 1;
    margin-bottom: 18px;
  }

  .login-card {
    margin-left: 0;
  }
}


/* Correção: imagem real posicionada na área central demarcada */
.login-shell {
  grid-template-columns: minmax(900px, 1fr) minmax(420px, 480px);
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  padding-right: 42%;
}

.login-brand-panel h1,
.login-brand-panel > p,
.brand-features,
.brand-badge,
.brand-logo {
  position: relative;
  z-index: 2;
}

.login-brand-panel h1 {
  max-width: 720px;
}

.login-brand-panel > p {
  max-width: 650px;
}

.brand-features {
  max-width: 690px;
}

.brand-person-photo {
  position: absolute;
  right: 24px;
  top: 50%;
  width: min(520px, 42%);
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-person-photo::before {
  content: '';
  position: absolute;
  width: 86%;
  height: 74%;
  border-radius: 42px;
  background: radial-gradient(circle at center, rgba(22, 184, 67, 0.12), rgba(22, 184, 67, 0.035) 62%, transparent 78%);
  filter: blur(14px);
  z-index: -1;
}

.brand-person-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(15, 23, 42, 0.08));
}

/* Desliga posicionamentos antigos que jogavam a imagem atrás do login */
.login-hero-photo,
.login-illustration {
  display: none !important;
}

.login-form-panel {
  position: relative;
  z-index: 3;
  overflow: visible;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1320px) {
  .login-shell {
    grid-template-columns: minmax(760px, 1fr) minmax(400px, 450px);
  }

  .login-brand-panel {
    padding-right: 38%;
  }

  .brand-person-photo {
    width: min(430px, 38%);
    right: 10px;
  }
}

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

  .login-brand-panel {
    padding-right: 56px;
  }

  .brand-person-photo {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(440px, 100%);
    margin: 30px auto 0;
  }

  .login-form-panel {
    justify-content: center;
  }
}


/* Ajuste: PNG transparente da mulher no login */
.brand-person-photo {
  right: 8px;
  top: 54%;
  width: min(500px, 40%);
  transform: translateY(-50%);
}

.brand-person-photo img {
  filter: drop-shadow(0 22px 34px rgba(15, 23, 42, 0.10));
}

@media (max-width: 1320px) {
  .brand-person-photo {
    width: min(430px, 36%);
    right: 4px;
  }
}


/* Ajuste final: card sem fundo branco e tela sem barra lateral */
html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  overflow-y: hidden;
}

.login-shell {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
}

.login-brand-panel {
  min-width: 0;
  padding: 42px 40px;
  padding-right: clamp(340px, 33vw, 520px);
}

.login-form-panel {
  min-width: 0;
  padding: 24px 28px 24px 18px;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: min(100%, 396px);
  max-width: 396px;
  margin-left: 0;
  padding: 28px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-person-photo {
  right: 10px;
  top: 52%;
  width: min(480px, 36vw);
}

.brand-person-photo img {
  width: 100%;
  height: auto;
}

@media (max-width: 1440px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  }

  .login-brand-panel {
    padding-right: clamp(300px, 31vw, 460px);
  }

  .brand-person-photo {
    width: min(430px, 34vw);
  }
}

@media (max-width: 1200px) {
  body {
    overflow-y: auto;
  }

  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    padding: 34px 22px 18px;
  }

  .brand-person-photo {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(380px, 100%);
    margin: 24px auto 0;
  }

  .login-form-panel {
    padding: 18px 16px 28px;
  }

  .login-card {
    width: min(100%, 460px);
    max-width: 460px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
  }
}


/* Ajuste: remover borda do card de login */
.login-card {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}


/* Ajuste final: tela de login sem barra lateral/vertical no desktop */
html, body {
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

body {
  width: 100%;
}

.login-shell {
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
}

.login-brand-panel,
.login-form-panel {
  min-height: 0;
  overflow: hidden;
}

.login-brand-panel {
  position: relative;
  padding: 34px 34px 28px !important;
  padding-right: clamp(280px, 31vw, 470px) !important;
  justify-content: center;
}

.brand-badge {
  margin-bottom: 18px !important;
}

.brand-logo {
  width: 178px !important;
  margin-bottom: 18px !important;
}

.login-brand-panel h1 {
  margin-bottom: 12px !important;
  font-size: clamp(28px, 3.5vw, 40px) !important;
}

.login-brand-panel > p {
  font-size: 15px !important;
  line-height: 1.55 !important;
  max-width: 560px !important;
}

.brand-features {
  margin-top: 22px !important;
  gap: 12px !important;
  max-width: 640px !important;
}

.feature-card {
  padding: 16px !important;
  border-radius: 20px !important;
}

.feature-card i {
  width: 50px !important;
  height: 50px !important;
}

.login-form-panel {
  padding: 18px 24px 18px 16px !important;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(100%, 392px) !important;
  max-width: 392px !important;
  padding: 24px !important;
}

.login-form {
  margin-top: 22px !important;
}

.form-field {
  margin-bottom: 14px !important;
}

.input-shell {
  min-height: 58px !important;
}

.remember-row {
  margin: 8px 0 18px !important;
}

.login-btn {
  min-height: 62px !important;
}

.login-card-footer {
  margin-top: 18px !important;
  padding-top: 16px !important;
}

.brand-person-photo {
  right: 18px !important;
  bottom: 8px !important;
  top: auto !important;
  transform: none !important;
  width: min(430px, 32vw) !important;
  max-height: calc(100dvh - 120px) !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.brand-person-photo img {
  width: 100% !important;
  max-height: calc(100dvh - 140px) !important;
  object-fit: contain !important;
}

@media (max-width: 1320px) {
  .login-brand-panel {
    padding-right: clamp(250px, 28vw, 410px) !important;
  }

  .brand-person-photo {
    width: min(360px, 29vw) !important;
  }

  .login-brand-panel h1 {
    font-size: clamp(26px, 3vw, 36px) !important;
  }
}

@media (max-width: 1200px) {
  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .login-shell {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    grid-template-columns: 1fr !important;
  }

  .login-brand-panel,
  .login-form-panel {
    overflow: visible !important;
  }

  .login-brand-panel {
    padding: 28px 20px 14px !important;
    padding-right: 20px !important;
  }

  .brand-person-photo {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: min(360px, 100%) !important;
    max-height: none !important;
    margin: 20px auto 0 !important;
  }

  .brand-person-photo img {
    max-height: none !important;
  }

  .login-form-panel {
    padding: 10px 16px 24px !important;
  }

  .login-card {
    width: min(100%, 460px) !important;
    max-width: 460px !important;
  }
}


/* Ajuste solicitado: imagem da mulher centralizada na área demarcada */
.brand-person-photo {
  right: 28px !important;
  top: 128px !important;
  bottom: auto !important;
  width: min(500px, 35vw) !important;
  max-width: 500px !important;
  max-height: calc(100dvh - 190px) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.brand-person-photo img {
  width: 100% !important;
  height: auto !important;
  max-height: calc(100dvh - 210px) !important;
  object-fit: contain !important;
  object-position: center top !important;
}

@media (max-width: 1440px) {
  .brand-person-photo {
    right: 22px !important;
    top: 138px !important;
    width: min(460px, 33vw) !important;
    max-width: 460px !important;
  }
}

@media (max-width: 1320px) {
  .brand-person-photo {
    right: 16px !important;
    top: 148px !important;
    width: min(410px, 30vw) !important;
    max-width: 410px !important;
  }

  .login-brand-panel h1,
  .login-brand-panel > p,
  .brand-features {
    width: 420px !important;
    max-width: 420px !important;
  }

  .feature-card {
    width: 420px !important;
    padding-right: 14px !important;
  }
}

/* Teste: segunda imagem do Pexels como foto inteira, sem corte */
.brand-person-photo img {
  border-radius: 18px !important;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden !important;
}

/* Fundo completo da area demarcada: mulher no notebook a direita, respiro a esquerda */
.login-brand-panel {
  background-image:
    linear-gradient(
      90deg,
      rgba(247, 255, 250, 0.99) 0%,
      rgba(247, 255, 250, 0.98) 42%,
      rgba(247, 255, 250, 0.82) 60%,
      rgba(247, 255, 250, 0.22) 100%
    ),
    url("assets/login-bg-mulher-notebook-direita.jpg") !important;
  background-size: cover !important;
  background-position: right bottom !important;
  background-repeat: no-repeat !important;
}

.brand-person-photo {
  display: none !important;
}
