:root{
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;

  --radius: 14px;
  --focus: rgba(214, 31, 42, .14);

  /* BRAND (controle aqui) */
  --client-logo-h: 180px;        /* <<< AUMENTA/DIMINUI AQUI (ex.: 70/78/86) */
  --client-logo-w: 420px;       /* limite de largura pra não estourar */
  --mark-size: 40px;

  /* RIGHT */
  --hero-bg: #07090d;

  /* deixa a imagem mais visível */
  --hero-img-opacity: 0.88;
  --hero-img-contrast: 1.06;
  --hero-img-bright: 1.00;
  --hero-img-sat: 1.06;

  /* overlay global bem leve (sem “card” no texto) */
  --hero-overlay-left: 0.12;
  --hero-overlay-right: 0.07;
  --hero-overlay-top: 0.08;
  --hero-overlay-bottom: 0.10;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

.auth-body{
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* sem scroll em desktop */
  overflow: hidden;
}

.auth-shell{
  height: 100vh;
  display: grid;
  grid-template-columns: 560px 1fr;
}

/* ===========================
   LEFT
   =========================== */
.auth-left{
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  justify-content: center;
  padding: 24px 42px;
}

.auth-left-inner{
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* HEADER / BRAND */
.auth-brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 8px;
  margin-bottom: 8px;
}

.brand-client-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* ✅ CORREÇÃO: força tamanho real da logo do cliente */
.brand-client{
  height: var(--client-logo-h); /* força crescer */
  width: auto;                  /* mantém proporção */
  max-width: min(var(--client-logo-w), 100%);
  object-fit: contain;
  opacity: .98;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.05));
}

.brand-mark{
  width: var(--mark-size);
  height: auto;
  opacity: .95;
  margin-top: 2px;
}

.auth-title{
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.35px;
}

.auth-subtitle{
  margin-top: -6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
}

/* 1 divisor só */
.brand-divider{
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 10px 0 6px;
  opacity: .65;
}

/* mensagens */
.auth-messages{
  margin: 6px 0 8px;
}

.auth-alert{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: #1f2937;
  font-size: 13px;
}

.auth-alert i{ margin-top: 2px; opacity: .85; }

.auth-alert-danger{
  border-color: rgba(220, 38, 38, .22);
  background: rgba(220, 38, 38, .06);
}

/* form */
.auth-form-wrap{ margin-top: 0; }
.field{ margin-bottom: 10px; }

.label{
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .2px;
}

.control{
  position: relative;
  display: flex;
  align-items: center;
}

.input{
  width: 100%;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 0 44px 0 12px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}

.input::placeholder{ color: rgba(107,114,128,.70); }

.input:focus{
  border-color: rgba(214, 31, 42, .52);
  box-shadow: 0 0 0 4px var(--focus);
}

.icon-btn{
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(17,24,39,.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease, color .12s ease;
}

.icon-btn:hover{
  background: rgba(17,24,39,.06);
  color: rgba(17,24,39,.85);
}

/* política */
.policy{ margin: 4px 0 10px; }

.policy-row{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  user-select: none;
}

.policy-check{
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.policy-text{
  font-size: 13px;
  color: rgba(17,24,39,.84);
  line-height: 1.35;
  font-weight: 700;
}

.policy-help{
  margin-left: 26px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(107,114,128,.95);
}

.policy-help a{
  color: #2563eb;
  text-decoration: none;
}
.policy-help a:hover{ text-decoration: underline; }

/* botão */
.submit{
  width: 100%;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(17,24,39,.12);
  background: #111827;
  color: #fff;
  font-weight: 900;
  letter-spacing: .2px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease;
}

.submit:hover{
  background: #0b1220;
  box-shadow: 0 10px 22px rgba(17,24,39,.14);
  transform: translateY(-1px);
}

.submit:active{
  transform: translateY(0);
  box-shadow: none;
}

.submit[disabled]{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* links */
.auth-links{
  margin-top: 10px;
  text-align: center;
}

.auth-link{
  font-size: 12px;
  color: rgba(17,24,39,.70);
  text-decoration: none;
}
.auth-link:hover{ text-decoration: underline; }

/* FOOTER */
.auth-foot{
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.auth-foot-meta{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.auth-foot-text{
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.auth-foot-sub{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(107,114,128,.92);
}

/* telas baixas */
@media (max-height: 720px){
  .auth-left{ padding: 18px 34px; }
  :root{
    --client-logo-h: 66px;
    --client-logo-w: 380px;
    --mark-size: 38px;
  }
}

/* ===========================
   RIGHT
   =========================== */
.auth-right{
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
}

.auth-media{
  position: absolute;
  inset: 0;
}

.media-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
  filter: contrast(var(--hero-img-contrast))
          brightness(var(--hero-img-bright))
          saturate(var(--hero-img-sat));
}

.media-slide.is-active{
  opacity: var(--hero-img-opacity);
}

/* overlay global LEVE (sem card no texto) */
.auth-right::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,var(--hero-overlay-left)) 0%,
      rgba(0,0,0,var(--hero-overlay-right)) 70%,
      rgba(0,0,0,0.04) 100%
    ),
    linear-gradient(180deg,
      rgba(0,0,0,var(--hero-overlay-top)) 0%,
      rgba(0,0,0,0.04) 52%,
      rgba(0,0,0,var(--hero-overlay-bottom)) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.auth-right-content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 64px;
}

/* ✅ SEM “CARD”: sem background, sem pseudo-element */
.right-copy{
  max-width: 740px;
  text-align: left;
  color: rgba(255,255,255,0.92);
}

/* Mantém legibilidade só com sombra de texto (bem sutil) */
.right-title{
  margin: 0;
  font-size: 40px;
  line-height: 1.10;
  letter-spacing: -0.8px;
  font-weight: 900;
  color: rgba(255,255,255,0.98);
  text-shadow: 0 2px 14px rgba(0,0,0,.28);
}

.right-text{
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.84);
  max-width: 640px;
  text-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.right-client{
  font-weight: 900;
  color: rgba(255,255,255,0.98);
}

.right-modules{
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.70);
  text-shadow: 0 2px 10px rgba(0,0,0,.16);
}

/* Responsivo */
@media (max-width: 992px){
  .auth-shell{ grid-template-columns: 1fr; }
  .auth-right{ display: none; }

  /* em mobile, permite scroll por causa do teclado */
  .auth-body{ overflow: auto; }

  .auth-left{
    padding: 22px 16px; /* menos padding, sobra mais espaço pra marca */
    border-right: 0;
  }

  .auth-left-inner{ max-width: 460px; }

  :root{
    --client-logo-h: 96px;   /* <<< AQUI resolve o “pequeno” no celular */
    --client-logo-w: 520px;
    --mark-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce){
  .media-slide{ transition: none; }
}
