:root{
  --text:#222;
  --muted:#6f6f6f;
  --border:#dcdcdc;
  --bg:#ffffff;

  --radius:10px;
  --shadow:none;

  --grad: linear-gradient(45deg, #4b25ea, #bd18e6, #fb590e);
  --grad-max: linear-gradient(45deg, #7c25ea, #7c25ea, #ff4d09, #000000, #000000);
}

/* Base */
body{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  margin:0 !important;
  font-family:'Poppins', sans-serif;
  color:var(--text);
  background: var(--bg);
}

/* ========= Topbar (minimal) ========= */
.auth-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 24px;
}

.auth-brand{
  text-decoration:none;
  color:inherit;
  font-weight:600;
  font-size:16px;
}

.auth-toplink{
  text-decoration:none;
  font-size:12px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
}
.auth-toplink:hover{
  background: rgba(0,0,0,.03);
}

/* ========= Split layout ========= */
.auth-shell{
  flex: 1;
  min-height: calc(100vh - 72px); /* ocupa a tela abaixo da topbar */
  display: flex;
  width: 100%;
  margin: 0;          /* remove centralização */
  max-width: none;    /* remove limite */
  padding: 0;         /* cada lado cuida do padding */
  gap: 0;             /* sem gap entre colunas */
}

/* Cada lado ocupa metade da tela */
.auth-left{
  width: 48%;
  background: #f5f5f5;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.auth-right{
  width: 52%;
  background: #ffffff;
  padding: 48px 56px;
  display: flex;
  align-content: center;
  flex-wrap: wrap;
}

/* Limita o conteúdo interno sem limitar o fundo */
.auth-left > *{
  max-width: 520px;
}

.auth-right > *{
  width: min(420px, 100%);
}

/* esquerda */
.auth-illustration{
  position:relative;
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
}
.auth-blob{
  position:absolute;
  inset:0;
  border-radius: 50%;
  background: #f4f4f4;
}
.auth-hand{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 44px;
}

.auth-h1{
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 10px 0;
  font-weight: 600;
}
.auth-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ========= Form (clean/outline) ========= */
.auth-form{
  width: 100%;
}

.form-field{
  margin-bottom: 12px;
}

.form-field label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.auth-input{
  width:100%;
  height: 44px;
  padding: 10px 12px;
  font-size:14px;
  border:1px solid var(--border);
  border-radius: 8px;
  outline:none;
  background:#fff;
}

.auth-input:focus{
  border-color: #b9b9b9;
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}

/* senha */
.password-container{
  position: relative;
}
.toggle-pass{
  position:absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: .7;
  cursor:pointer;
}
.toggle-pass:hover{ opacity: 1; }

/* botão principal (clean, mas com identidade) */
.auth-btn{
  width:100%;
  height: 44px;
  border-radius: 8px;
  border:1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  cursor:pointer;
  margin-top: 8px;
  transition: .2s;
}

.auth-btn:hover{
  border-color: #c8c8c8;
  background: rgba(0,0,0,.02);
}

/* links */
.auth-links{
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
}
.auth-links a{
  text-decoration:none;
  color: #2a66ff; /* vibe Manychat */
}
.auth-links a:hover{ text-decoration:underline; }
.auth-dot{ color: #bdbdbd; }

/* ========= Alert (só aparece quando tiver mensagem) ========= */
.auth-alert{
  display:none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
}
.auth-alert.error{
  display:block;
  background:#fff2f2;
  border:1px solid #ffd0d0;
  color:#a40000;
  width: 100%;
  text-align: center;
}
.auth-alert.success{
  display:block;
  background:#f0fff3;
  border:1px solid #bff5c9;
  color:#0a7a21;
}

/* ========= Social auth ========= */
.auth-social-stack{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px 0;
}

.auth-social-btn{
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: .2s;
}

.auth-social-btn i{
  font-size: 15px;
}

.auth-social-btn:hover{
  background: rgba(0,0,0,.02);
  border-color: #c9c9c9;
}

.auth-social-btn.social-google:hover{
  border-color: #bed9b0;
}

.auth-social-btn.social-facebook:hover{
  border-color: #b4c4f0;
}

.auth-divider{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 14px 0;
  color: #8c8c8c;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after{
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.auth-divider span{
  white-space: nowrap;
}

/* ========= Footer (clean) ========= */
footer, .app-footer{
  margin-top:auto;
  text-align:center;
  width:100%;
  padding: 22px 0;
  font-size:12px;
  color: #2a66ff; /* referência tem links azuis */
}

.link-home-footer{
  text-decoration:none !important;
  color:inherit !important;
}
.link-home-footer:hover{
  text-decoration:underline !important;
}

/* Logo gradient (mantém identidade) */
.max{
  background: var(--grad-max);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
}

/* ========= Mobile (igual print) ========= */
@media (max-width: 900px){
  .auth-shell{
    min-height: calc(100vh - 80px); /* desconta topbar */
    display: flex;
    flex-direction: column;
    justify-content: center; /* CENTRALIZA VERTICALMENTE */
    align-items: center;
    gap: 18px;
    padding: 16px;
  }

  .auth-left{
    width: 100%;
    max-width: 520px;
    background: transparent; /* no mobile vira fundo branco geral */
    padding: 0;
    text-align: left;
  }

  .auth-right{
    width: 100%;
    max-width: 420px;
    padding: 0;
  }

  .auth-h1{
    font-size: 34px;
  }
}
