/* ============================================
   AUTH — Login, Cadastro, Recuperação de Senha
   ============================================ */

.auth-main {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f7ff 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(91,79,232,0.15);
}

/* ---- PAINEL ESQUERDO (formulário) ---- */
.auth-box {
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
  overflow: hidden;
  max-width: 100%;
}

.auth-logo img {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.auth-logo span {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f0e17;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-titulo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #0f0e17;
  margin-bottom: 6px;
}

.auth-subtitulo {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 24px;
}

.auth-subtitulo a {
  color: #5b4fe8;
  font-weight: 600;
  text-decoration: none;
}

/* Flash messages */
.auth-flash {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-flash-erro    { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-flash-sucesso { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.auth-flash-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Formulário */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-link-esqueceu {
  font-weight: 400;
  font-size: 0.8rem;
  color: #5b4fe8;
  text-decoration: none;
}

.auth-link-esqueceu:hover { text-decoration: underline; }

.auth-input-wrapper {
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #0f0e17;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  outline: none;
}

.auth-input:focus {
  border-color: #5b4fe8;
  background: white;
  box-shadow: 0 0 0 3px rgba(91,79,232,0.12);
}

.auth-input::placeholder { color: #9ca3af; }

.auth-input-wrapper .auth-input {
  padding-right: 44px;
}

.auth-toggle-senha {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  transition: color 0.15s;
}

.auth-toggle-senha:hover { color: #5b4fe8; }

.auth-forca-senha {
  min-height: 18px;
  padding-top: 2px;
}

/* Checkboxes de aceite */
.auth-aceites {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.auth-check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #374151;
  cursor: pointer;
  line-height: 1.5;
}

.auth-check-label input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #5b4fe8;
  width: 16px;
  height: 16px;
}

.auth-check-label a {
  color: #5b4fe8;
  text-decoration: underline;
}

/* Botão principal */
.auth-btn {
  display: block;
  width: 100%;
  background: #5b4fe8;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(91,79,232,0.3);
}

.auth-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91,79,232,0.4);
}

/* Divisor */
.auth-divisor {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d1d5db;
  font-size: 0.8rem;
  margin: 12px 0;
}

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

/* Botão secundário */
.auth-btn-secundario {
  display: block;
  width: 100%;
  background: transparent;
  color: #5b4fe8;
  border: 1.5px solid #5b4fe8;
  padding: 13px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-btn-secundario:hover {
  background: #ede9fe;
}

.auth-aviso-legal {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.auth-aviso-legal a { color: #5b4fe8; }

/* ---- PAINEL LATERAL DIREITO ---- */
.auth-lateral {
  background: linear-gradient(160deg, #5b4fe8 0%, #3730a3 100%);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
}

.auth-lateral-conteudo { color: white; }

.auth-lateral-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.auth-lateral h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 24px;
  color: white;
}

.auth-lateral-lista {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-lateral-lista li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  opacity: 0.9;
  line-height: 1.4;
}

.auth-lateral-disclaimer {
  font-size: 0.75rem;
  opacity: 0.6;
  font-style: italic;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 700px) {
  .auth-container {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  
  .auth-lateral {
    display: none; /* ocultar painel lateral no mobile */
  }
  
  .auth-box {
    padding: 28px 24px;
  }
}
