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

  --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 */
.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 full width */
.auth-shell{
  flex: 1;
  min-height: calc(100vh - 72px);
  display:flex;
  width:100%;
  margin:0;
  padding:0;
  gap:0;
}

.auth-left{
  width:48%;
  background: var(--soft);
  padding: 48px 56px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
}

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

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

/* Left content */
.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;
}

/* Card no lado direito */
.auth-card{
  width: 100%;
  /* border: 1px solid var(--border); */
  border-radius: 14px;
  padding: 22px;
  background:#fff;
  /*  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08); */
}

.auth-card-title{
  margin:0 0 6px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-card-sub{
  margin:0 0 18px 0;
  font-size: 14px;
  color: var(--muted);
}

/* Form */
.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: 10px;
  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 */
.auth-btn, .button-modal-fechar{
  width:100%;
  height: 44px;
  border-radius: 10px;
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  font-weight: 600;
  cursor:pointer;
  transition: .2s;
}

.auth-btn:hover, .button-modal-fechar: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: 8px;
}
.auth-links a{
  text-decoration:none;
  color:#2a66ff;
}
.auth-links a:hover{ text-decoration:underline; }
.auth-muted{ color: var(--muted); }

/* Inline errors */
.inline-error{
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #a40000;
}

/* Alert (se quiser usar) */
.auth-alert{
  display:none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  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 */
footer{
  margin-top:auto;
  text-align:center;
  width:100%;
  padding: 22px 0;
  font-size:12px;
  color: #2a66ff;
}

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

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

/* Telefone em 1 linha: DDI + número */
.phone-row{
  display:flex;
  gap: 10px;
}

.phone-ddi{
  width: 140px;
  flex: 0 0 140px;
  padding-right: 10px;
}

.phone-number{
  flex: 1;
  min-width: 0;
}

/* Mobile */
@media (max-width: 900px){
  .auth-shell{
    flex-direction: column;
    min-height: calc(100vh - 72px);
  }

  .auth-left{
    width:100%;
    padding: 28px 18px;
    justify-content:flex-start;
  }

  .auth-right{
    width:100%;
    padding: 18px 18px 36px 18px;
    flex: 1;
    align-items: center;
    justify-content: center;
  }

  .auth-h1{ font-size: 32px; }
  .auth-card{ padding: 18px; }

  .phone-ddi{
    width: 100px;
    flex: 0 0 100px;
  }
}


/* Mobile: garante que não estoura */
@media (max-width: 420px){
  
}
